再生済みのクリップをどう扱うか
WrapMode.Default:クリップからラップモードを読み込む。(クリップのデフォルトはOnceです)
WrapMode.Once: 再生が終わるとアニメーションを停止します。
WrapMode.Loop: 再生が終わると最初から再生します。
WrapMode.PingPong: 行ったり来たりするアニメーションを再生します。
WrapMode.ClampForever: アニメーションを再生します。再生が最後まで来た時は最後のフレームのサンプリングを保持します。
// Make the animation loop animation.wrapMode = WrapMode.Loop;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { animation.wrapMode = WrapMode.Loop; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: animation.wrapMode = WrapMode.Loop