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

    StreamingImageSequencePlayableAsset

    一連の画像シーケンスを Unity Timeline で再生するためのプレイアブルアセットです。

    対応の画像形式

    Windows Mac
    png ✅ ✅
    tga ✅

    チュートリアル

    空のシーンから以下を行ってください。

    1. 空の GameObject を作成し、Director コンポーネントを追加してください。
    2. Unity プロジェクト内のフォルダー(StreamingAssets 配下のフォルダーが推奨されます)内の画像シーケンスをコピーしてください。 > StreamingAssets 配下のフォルダーにコピーすると、これらの画像を Unity にインポートするプロセスを省くことができます(画像の数が多い場合にはこのインポートプロセスに時間が掛かる場合があります)。
    3. Timeline ウィンドウが開かれていない場合は、これを開いてください。
    4. Timeline ウィンドウに StreamingImageSequenceTrack を追加してください。

      AddStreamingImageSequenceTrack

    5. 追加した StreamingImageSequenceTrack に画像シーケンスの入ったフォルダーをドラッグアンドドロップしてください。

      DragAndDropFolder

    6. メニューを GameObject -> UI -> Image の順にクリックして Image オブジェクトを作成してください。

    7. 作成した Image オブジェクトを、StreamingImageSequenceTrack のオブジェクトプロパティーにドラッグアンドドロップし「Create StreamingImageSequenceNativeRenderer on Image」をクリックしてください。

      CreateStreamingImageSequenceNativeRenderer

    フォルダー内の画像シーケンスが Image オブジェクトの中に表示されます。Timeline を再生したり、Timeline ウィンドウのタイムスライダーをドラッグすると、Image オブジェクトが再生/有効化/無効化されます。

    画像をインポートするこの他の方法は、ImportingImages をご覧ください。

    曲線

    アセットの曲線を調整してプレイバックのタイミングを変更することも可能です。
    これを行うには、曲線のセクションを開き、曲線の上で右クリックするとキーの追加を開始できます。

    StreamingImageSequenceCurve

    インスペクター

    StreamingImageSequencePlayableAsset

    • Resolution(読み取り専用)
      フォルダー内の最初の画像の幅と高さを表示します。
    • Folder
      画像ファイルが入っているフォルダーです。
    • Images
      フォルダー内の画像です。 画像ファイルの名前を上下にドラッグアンドドロップして画像を並び替えることができます。
    • Reset Curve.
      PlayableAsset 内の曲線のタイミングをリニアにリセットします。
    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