Search Results for

    Show / Hide Table of Contents

    Webcam / Texture Recording

    AVPro Movie Capture includes a demo scene that shows how to easily record a Unity webcam to video file. It uses the CaptureFromTexture component as Unity’s WebCamTexture is just a normal texture. If you want to capture the audio as well, make sure to select the microphone, or leave the audio device index as -1 to use the default microphone.

    On iOS, make sure to fill in the Camera Usage Description field in the Other Settings page of the Player Settings (NSCameraUsageDescription key in the built project’s Info.plist), your app will crash otherwise.

    Note

    To use the WebCamTexture capture component/demo, the string AVPRO_MOVIECAPTURE_WEBCAMTEXTURE_SUPPORT must be added to Scriping Define Symbols in Player Settings > Other Settings > Script Compilation. This is because on some platforms (iOS, macOS, Android at least) Unity's build system automatically forces webcam permissions for apps with source code containing the string "WebCamTexture", which can be build issues if this feature is not required.

    In This Article