Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimationMode.BeginSampling

public static void BeginSampling();

Description

Initialise the start of the animation clip sampling.

BeginSampling arranges for the ::SampleAnimationClip to operate correctly. Not calling BeginSampling prevents the animation data to be sampled. This function must be called immediately before the SampleAnimationClip is called. See the script example on the AnimationMode page to see this behaviour.