Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

AnimationMode.SampleAnimationClip

public static void SampleAnimationClip(GameObject gameObject, AnimationClip clip, float time);

Description

Samples an AnimationClip on the object and also records any modified properties in AnimationMode.

This function must always be surrounded by BeginSampling and EndSampling. When a property is no longer sampled (through SampleAnimationClip or AddPropertyModification) between BeginSampling and EndSampling it will automatically revert to the original value when EndSampling is called.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答