public static void EndSampling() { if (!AnimationMode.InAnimationMode()) { throw new InvalidOperationException("AnimationMode.EndSampling may only be called in animation mode. See AnimationMode.StartAnimationMode."); } AnimationMode.Internal_EndSampling(); }