BhaviorとAssetの二つのファイルをつくるヒエラルキー上で「右クリック」→「Create」→「Playables」を選択して、「Playable Behavior C# Script」と「Playable Asset C# Script」の二つを作成します。 スクリプトを記述する 作成したファイルを開くと、下のようなスクリプトが記述されていますので、その中に注釈をつけている部分を追記します。 Asset側 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Playables; [System.Serializable] public class (関数名) : PlayableAsset { //--------------以下の部分を追記
