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

スクリプト言語

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

Animation.Sample

Switch to Manual
public function Sample(): void;

Description

現在のステートでサンプリングを行います。

これは明示的にいくつかのアニメーション状態と一度だけサンプリングしたい時に便利です。

	// Set up some state;
	animation["MyClip"].time = 2.0;
	animation["MyClip"].enabled = true;
	// Sample animations now.
	animation.Sample();

	animation["MyClip"].enabled = false;