ドキュメント

Unity Engine

Unity Engine

SampleAnimationClip(GameObject, AnimationClip, float)

Samples the AnimationClip for the GameObject and also records modified properties when in Animation mode.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SampleAnimationClip(GameObject gameObject, AnimationClip clip, float time)

Parameters

gameObject

The root GameObject for the animation.

The AnimationClip to sample.

time

The time at which to sample.

Remarks

If this method returns true, you can use AnimationMode.SampleAnimationClip to animate the attached object.
Note: The script example for AnimationMode demonstrates how to use AnimationMode.InAnimationMode.