Class AnimationUtility
Inheritance
AnimationUtility
Assembly: UnityEditor.dll
Syntax
public class AnimationUtility
Fields
|
Improve this Doc
View Source
onCurveWasModified
Declaration
public static AnimationUtility.OnCurveWasModified onCurveWasModified
Field Value
Methods
Declaration
public static string CalculateTransformPath(Transform targetTransform, Transform root)
Parameters
Returns
ConstrainToPolynomialCurve(AnimationCurve)
Declaration
public static void ConstrainToPolynomialCurve(AnimationCurve curve)
Parameters
|
Improve this Doc
View Source
GetAllCurves(AnimationClip)
Declaration
[Obsolete("GetAllCurves is deprecated. Use GetCurveBindings and GetObjectReferenceCurveBindings instead.")]
public static AnimationClipCurveData[] GetAllCurves(AnimationClip clip)
Parameters
Returns
|
Improve this Doc
View Source
GetAllCurves(AnimationClip, Boolean)
Declaration
[Obsolete("GetAllCurves is deprecated. Use GetCurveBindings and GetObjectReferenceCurveBindings instead.")]
public static AnimationClipCurveData[] GetAllCurves(AnimationClip clip, [DefaultValue("true")] bool includeCurveData)
Parameters
Returns
|
Improve this Doc
View Source
GetAnimatableBindings(GameObject, GameObject)
Declaration
public static EditorCurveBinding[] GetAnimatableBindings(GameObject targetObject, GameObject root)
Parameters
Returns
GetAnimatedObject(GameObject, EditorCurveBinding)
Declaration
public static Object GetAnimatedObject(GameObject root, EditorCurveBinding binding)
Parameters
Returns
|
Improve this Doc
View Source
GetAnimationClips(Animation)
Declaration
[Obsolete("GetAnimationClips(Animation) is deprecated. Use GetAnimationClips(GameObject) instead.")]
public static AnimationClip[] GetAnimationClips(Animation component)
Parameters
Returns
|
Improve this Doc
View Source
GetAnimationClips(GameObject)
Declaration
public static AnimationClip[] GetAnimationClips(GameObject gameObject)
Parameters
Returns
GetAnimationClipSettings(AnimationClip)
Declaration
public static AnimationClipSettings GetAnimationClipSettings(AnimationClip clip)
Parameters
Returns
GetAnimationEvents(AnimationClip)
Declaration
public static AnimationEvent[] GetAnimationEvents(AnimationClip clip)
Parameters
Returns
GetCurveBindings(AnimationClip)
Declaration
public static EditorCurveBinding[] GetCurveBindings(AnimationClip clip)
Parameters
Returns
|
Improve this Doc
View Source
GetEditorCurve(AnimationClip, String, Type, String)
Declaration
[Obsolete("This overload is deprecated. Use the one with EditorCurveBinding instead.")]
public static AnimationCurve GetEditorCurve(AnimationClip clip, string relativePath, Type type, string propertyName)
Parameters
Returns
GetEditorCurve(AnimationClip, EditorCurveBinding)
Declaration
public static AnimationCurve GetEditorCurve(AnimationClip clip, EditorCurveBinding binding)
Parameters
Returns
|
Improve this Doc
View Source
GetEditorCurveValueType(GameObject, EditorCurveBinding)
Declaration
public static Type GetEditorCurveValueType(GameObject root, EditorCurveBinding binding)
Parameters
Returns
|
Improve this Doc
View Source
GetFloatValue(GameObject, String, Type, String, out Single)
Declaration
[Obsolete("This overload is deprecated. Use the one with EditorCurveBinding instead.")]
public static bool GetFloatValue(GameObject root, string relativePath, Type type, string propertyName, out float data)
Parameters
Returns
GetFloatValue(GameObject, EditorCurveBinding, out Single)
Declaration
public static bool GetFloatValue(GameObject root, EditorCurveBinding binding, out float data)
Parameters
Returns
|
Improve this Doc
View Source
GetGenerateMotionCurves(AnimationClip)
Declaration
[Obsolete("This is not used anymore. Root motion curves are automatically generated if applyRootMotion is enabled on Animator component.")]
public static bool GetGenerateMotionCurves(AnimationClip clip)
Parameters
Returns
GetKeyBroken(AnimationCurve, Int32)
Declaration
public static bool GetKeyBroken(AnimationCurve curve, int index)
Parameters
Returns
GetKeyLeftTangentMode(AnimationCurve, Int32)
Declaration
public static AnimationUtility.TangentMode GetKeyLeftTangentMode(AnimationCurve curve, int index)
Parameters
Returns
GetKeyRightTangentMode(AnimationCurve, Int32)
Declaration
public static AnimationUtility.TangentMode GetKeyRightTangentMode(AnimationCurve curve, int index)
Parameters
Returns
GetObjectReferenceCurve(AnimationClip, EditorCurveBinding)
Declaration
public static ObjectReferenceKeyframe[] GetObjectReferenceCurve(AnimationClip clip, EditorCurveBinding binding)
Parameters
Returns
GetObjectReferenceCurveBindings(AnimationClip)
Declaration
public static EditorCurveBinding[] GetObjectReferenceCurveBindings(AnimationClip clip)
Parameters
Returns
|
Improve this Doc
View Source
GetObjectReferenceValue(GameObject, EditorCurveBinding, out Object)
Declaration
public static bool GetObjectReferenceValue(GameObject root, EditorCurveBinding binding, out Object data)
Parameters
Returns
|
Improve this Doc
View Source
InAnimationMode()
Declaration
[Obsolete("Use AnimationMode.InAnimationMode instead.")]
public static bool InAnimationMode()
Returns
|
Improve this Doc
View Source
PropertyModificationToEditorCurveBinding(PropertyModification, GameObject, out EditorCurveBinding)
Declaration
public static Type PropertyModificationToEditorCurveBinding(PropertyModification modification, GameObject gameObject, out EditorCurveBinding binding)
Parameters
Returns
SetAdditiveReferencePose(AnimationClip, AnimationClip, Single)
Declaration
public static void SetAdditiveReferencePose(AnimationClip clip, AnimationClip referenceClip, float time)
Parameters
SetAnimationClips(Animation, AnimationClip[])
Declaration
public static void SetAnimationClips(Animation animation, AnimationClip[] clips)
Parameters
SetAnimationClipSettings(AnimationClip, AnimationClipSettings)
Declaration
public static void SetAnimationClipSettings(AnimationClip clip, AnimationClipSettings srcClipInfo)
Parameters
SetAnimationEvents(AnimationClip, AnimationEvent[])
Declaration
public static void SetAnimationEvents(AnimationClip clip, AnimationEvent[] events)
Parameters
|
Improve this Doc
View Source
SetAnimationType(AnimationClip, ModelImporterAnimationType)
Declaration
[Obsolete("SetAnimationType is no longer supported.")]
public static void SetAnimationType(AnimationClip clip, ModelImporterAnimationType type)
Parameters
|
Improve this Doc
View Source
SetEditorCurve(AnimationClip, String, Type, String, AnimationCurve)
Declaration
[Obsolete("This overload is deprecated. Use the one with EditorCurveBinding instead.")]
public static void SetEditorCurve(AnimationClip clip, string relativePath, Type type, string propertyName, AnimationCurve curve)
Parameters
|
Improve this Doc
View Source
SetEditorCurve(AnimationClip, EditorCurveBinding, AnimationCurve)
Declaration
public static void SetEditorCurve(AnimationClip clip, EditorCurveBinding binding, AnimationCurve curve)
Parameters
|
Improve this Doc
View Source
SetGenerateMotionCurves(AnimationClip, Boolean)
Declaration
[Obsolete("This is not used anymore. Root motion curves are automatically generated if applyRootMotion is enabled on Animator component.")]
public static void SetGenerateMotionCurves(AnimationClip clip, bool value)
Parameters
SetKeyBroken(AnimationCurve, Int32, Boolean)
Declaration
public static void SetKeyBroken(AnimationCurve curve, int index, bool broken)
Parameters
SetKeyLeftTangentMode(AnimationCurve, Int32, AnimationUtility.TangentMode)
Declaration
public static void SetKeyLeftTangentMode(AnimationCurve curve, int index, AnimationUtility.TangentMode tangentMode)
Parameters
SetKeyRightTangentMode(AnimationCurve, Int32, AnimationUtility.TangentMode)
Declaration
public static void SetKeyRightTangentMode(AnimationCurve curve, int index, AnimationUtility.TangentMode tangentMode)
Parameters
|
Improve this Doc
View Source
SetObjectReferenceCurve(AnimationClip, EditorCurveBinding, ObjectReferenceKeyframe[])
Declaration
public static void SetObjectReferenceCurve(AnimationClip clip, EditorCurveBinding binding, ObjectReferenceKeyframe[] keyframes)
Parameters
|
Improve this Doc
View Source
StartAnimationMode(Object[])
Declaration
[Obsolete("Use AnimationMode.StartAnimationmode instead.")]
public static void StartAnimationMode(Object[] objects)
Parameters
Type |
Name |
Description |
Object[] |
objects |
|
|
Improve this Doc
View Source
StopAnimationMode()
Declaration
[Obsolete("Use AnimationMode.StopAnimationMode instead.")]
public static void StopAnimationMode()
Extension Methods