static
def
SampleAnimationClip(gameObject as GameObject,
clip as AnimationClip,
time as float)
as void
Description
Samples an AnimationClip on the object and also records any modified properties in AnimationMode.
This function must always be surrounded by AnimationMode.BeginSample and AnimationMode.EndSample. When a property is no longer sampled (through SampleAnimationClip or AddPropertyModification) between BeginSample and EndSample it will automatically revert to the original value when EndSample is called.