Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BeginSampling()

Initialise the start of the animation clip sampling.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void BeginSampling()

Remarks

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