FaderPlayableAsset
A playable asset for fading Image component in Unity Timeline.
Tutorial
From an empty scene, do the following:
- Create an empty GameObject and add a Director component to it
- Copy the sequential images in a folder inside the Unity project, preferably under StreamingAssets > Copying to a folder under StreamingAssets will save us from the process to import those images in Unity, which may take a long time if there are a lot of images
- Open the Timeline window, if not opened yet
Add a FaderTrack in the Timeline Window
Right click on the timeline window and click Add Fader Playable Asset
Create an Image object by clicking the menu: GameObject -> UI -> Image
Drag and drop the Image object to the object property of the FaderTrack
The Image object will be faded in/out as we play the Timeline or drag the time slider of the Timeline window.
Inspector
- Color
The color to be applied to the Image component attached to the track. - Fade Type
- FadeIn : from invisible (alpha=0) to visible (alpha=1)
- FadeOut: from visible (alpha=1) to invisible (alpha=0)