お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
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アニメーションの有効/無効。
アニメーションに影響を持たせるためにはweightを0よりも大きく設定する必要があります。 もしアニメーションが無効の場合、アニメーションが有効になるまで時間は停止します。
// Enable the walk cycle animation["Walk"].enabled = true; animation["Walk"].weight = 1.0;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { animation["Walk"].enabled = true; animation["Walk"].weight = 1.0F; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: animation['Walk'].enabled = true animation['Walk'].weight = 1.0F