Importing Images
There are a couple of ways to import images into StreamingImageSequencePlayableAsset
- Folder Drag and Drop to the track
- Setting the folder via inspector
- Using StreamingImageSequence script for Adobe After Effects
Folder Drag and Drop to the track
This is done by doing drag and drop of the sequential images folder to the StreamingImageSequenceTrack.
Setting the Folder via Inspector
We can simply click the Select button, or we can also drag and drop a folder directly into the inspector.
If the chosen folder is not under StreamingAssets, then the following import window will appear to confirm if we'd like to copy the images into StreamingAssets.
We can choose to skip copying by unchecking the checkbox to do so.
Copying to StreamingAssets is recommended because it saves us from the import process, which may take a long time if there are a lot of images.
Using StreamingImageSequence script for Adobe After Effects
- In Adobe After Effects, Run StreamingImageSequence script for Adobe After Effects to export the images into a folder.
- In Unity, click the menu: Assets -> StreamingImageSequence -> Import AE Timeline, and select the jstimeline file in the exported folder.
This import will also create/setup the required Director and Image objects in the Assets/{jstimeline_name} folder.
Importing a jstimeline which has the same file name as a previously imported jstimeline will overwrite the existing assets in the folder, so it is recommended to move these assets into another folder.