Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SampleAnimationClip(GameObject, AnimationClip, float)

Samples the AnimationClip for the GameObject and also records modified properties when in Animation mode.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.