A template for Unity 2019.3 or later, which lets you use Unity as a Video Editor.
To get an understanding of why you might do this, and what can be achieved watch:
Example YouTube Video
For a more complete explaination/documentation read this blog post:
Read Blog Post
In 5 simple steps:
- Clone/download the repository and open it in Unity 2019.3 or later.
- Open the Sample Scene and set the output video resolution by changing the Game View resolution (use 1920x1080 for the xample scene).
- Open the Timeline window and select the 'Global Timeline' object.
- Enter Playmode to watch the video play. The output is recorded during the 'RecorderClip' within timeline.
- Open the 'Recordings' folder which will be created in the project directory and will contain the exported video.
Please star ⭐ the repository if you find it useful so others can find it.
- The project includes a 'Welcome' window to help get you setup. It can also be accessed through the Top Menu Bar.
- Use Timeline! It makes everything much easier. Plus the included modifications to fix VideoPlayer bugs are only designed for use with Timeline.
- All video clips you use should have 'Transcode' checked in their import settings. This will prevent delays on videos starting to play.
- Don't worry about dropping frames. Unity Recorder won't let that happen. So you can export your videos on lower-end devices if you want. The export process will take longer but you won't lose quality.
- Use TextMeshPro for all text you use to make sure it is crystal clear. The project includes some popular fonts which are ready to use from Google Fonts.
- Don't start recording as soon as you enter playmode! In Timeline leave a few seconds before the RecorderClip starts (just like in the sample scene). This is important because some video thrumbnail processing is done in the first second when you enter Playmode.
- The project uses the Unity Recoreder Package to record the contents of the 'Game View' during Playmode to create the video. You don't need to build anything! The recording can be done in multiple ways but I recommend using a RecorderClip through Timeline (see the sample scene). The package is still in alpha so you might want to update it later on.
- The project also uses the Default Playables package from the Asset Store. But, this package has been heavily modified to make it compatible with Unity Recorder, so do not update it!
- The sample video includes UI elements with colour gradients. The code came from this GitHub repo. The sample scene also uses some avatar characters from here and the soundtrack comes from YouTube's free music library. It is a a track by Futuremono called 'Long Road'.
This code is released under MIT license. Modify, distribute, sell, fork, and use this as much as you like. Both for personal and commercial use. I hold no responsibility if anything goes wrong.
If you use this, you don't need to refer to this repo, or give me any kind of credit but it would be appreciated. At least a ⭐ would be nice.
Pull Requests are welcome. But, note that by creating a pull request you are giving me permission to merge your code and release it under the MIT license mentioned above. At no point will you be able to withdraw merged code from the repository, or change the license under which it has been made available.
You can contact me by submitting a contact forms here or here or by opening an issue. If using the contact forms please state you are asking about the 'Video Editor Template' to avoid confusion.
I also do freelance work if you need something more significant.
If you are a Unity user please consider purchasing some of my other Unity assets which you can find here. Or contact me through the forms linked above to donate some other way.