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

    StreamingImageSequencePlayableAsset

    A playable asset for playing sequential image sequences in Unity Timeline.

    Supported Image Formats

    Windows Mac
    png ✅ ✅
    tga ✅

    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 StreamingImageSequenceTrack in the Timeline Window

      AddStreamingImageSequenceTrack

    5. Drag and Drop the sequential images folder to the StreamingImageSequenceTrack added previously

      DragAndDropFolder

    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 StreamingImageSequenceTrack, and click Create StreamingImageSequenceNativeRenderer on Image

      CreateStreamingImageSequenceNativeRenderer

    The image sequences in the folder will then be shown inside the Image object, and the Image object will be played/enabled/disabled as we play the Timeline or drag the time slider of the Timeline window.

    For other ways for importing images, see ImportingImages

    Curve

    We can also change the timing of the playback by adjusting the curve of the asset.
    To do this, open the curve section, and right click on the curve to start adding keys.

    StreamingImageSequenceCurve

    Inspector

    StreamingImageSequencePlayableAsset

    • Resolution (Read Only)
      Shows the width and height of the first image in the folder
    • Folder
      The folder where the image files are located
    • Images
      The images inside the folder. We can reorder the images by dragging the image file name up/down.
    • Reset Curve.
      Reset the curve timing in the PlayableAsset to be linear.
    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