FaderPlayableAsset | Streaming Image Sequence | 0.0.4-preview
docs.unity3d.com

    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023