お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
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.
CloseAnimationクラスから再生した全てのアニメーションの再生を停止します。
アニメーションを停止させるとスタート位置に巻き戻されます。
// Stop all animations animation.Stop();
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { animation.Stop(); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: animation.Stop()
/name/ の名からアニメーションを停止します
アニメーションを停止させるとスタート位置に巻き戻されます。
// Stop the walk animation animation.Stop("walk");
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { animation.Stop("walk"); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: animation.Stop('walk')