お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close現在のアニメーションの再生時間。
もし時間がアニメーションの長さよりも大きい場合はwrapModeにしたがってラップされます。 値はアニメーションの長さよりも大きくすることが可能です。 このケースでは再生モードはサンプリング前に時間を再度マッピングします。 この値は通常0から無限大へと向かっていきます。
// Rewind the walk animation animation["Walk"].time = 0.0;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { animation["Walk"].time = 0.0F; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: animation['Walk'].time = 0.0F