Recording Videos
Video or It Didn't Happen 🤨
Recording videos is the most fundamental feature of VideoKit (if it wasn't already obvious from the name). Recording videos in VideoKit is extremely easy:
.gif?alt=media&token=48e918d0-ef85-46ea-8cbb-cef2616f4577)
Creating a recorder in your scene.
Next, we need to invoke
VideoKitRecorder.StartRecording
when we want to begin a recording session. For this, we can use a UI button:.gif?alt=media&token=73f17a23-1f1a-45ef-afa2-1b17491eaa12)
Feel free to resize the button and change the text to something more descriptive.
Before we take our setup for a spin, we should add another button to stop the recording. We will add a UI button to call
VideoKitRecorder.StopRecording
:.gif?alt=media&token=4a1dc4e3-7086-47d6-84f3-a391545318e8)
Enter play mode, click the 'Start Recording' button, wait a few seconds, then click the 'Stop Recording' button. Now, navigate to your project directory and there should be a new directory called
VideoKit
, and within it, you should find a video of your empty scene!VideoKit always saves videos to the
VideoKit
directory in your project folder (in the Editor) or in your app's private documents directory (at runtime).Last modified 8mo ago