言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

AnimationState.enabled

public var enabled: bool;

Description

アニメーションの有効/無効。

アニメーションに影響を持たせるためにはweightを0よりも大きく設定する必要があります。 もしアニメーションが無効の場合、アニメーションが有効になるまで時間は停止します。

	// Enable the walk cycle
	animation["Walk"].enabled = true;
	animation["Walk"].weight = 1.0;