FaderPlayableAsset | Streaming Image Sequence | 0.1.5-preview
docs.unity.cn

    FaderPlayableAsset

    A playable asset for fading Image component in Unity Timeline.

    Tutorial

    From an empty scene, do the following:

    1. Create an empty GameObject and add a Director component to it
    2. 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
    3. Open the Timeline window, if not opened yet
    4. Add a FaderTrack in the Timeline Window

      AddFaderTrack

    5. Right click on the timeline window and click Add Fader Playable Asset

      AddFaderPlayableAsset

    6. Create an Image object by clicking the menu: GameObject -> UI -> Image

    7. 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

    FaderPlayableAsset

    • 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)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX