Select your preferred scripting language. All code snippets will be displayed in this language.
Namespace: UnityEditor
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseEditor utility functions for modifying animation clips.
CalculateTransformPath | Calculates path from root transform to target transform. |
GetAllCurves | Retrieves all curves from a specific animation clip. |
GetAnimationClips | Returns the array of AnimationClips that are referenced in the Animation component. |
GetAnimationEvents | Retrieves all animation events associated with the animation clip. |
GetEditorCurve | Unity automatic combines position curves, scale curves, rotation curves internally. |
GetFloatValue | Retrieves the current float value by sampling a curve value on a specific game object. |
SetAnimationClips | Sets the array of AnimationClips to be referenced in the Animation component. |
SetAnimationEvents | Replaces all animation events in the animation clip. |
SetEditorCurve | Adds an editor curve to the given clip. |