docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EditorCurveBindingUtils

    Utility class that provides an easy way of retrieving EditorCurveBindings for common data types.

    Inheritance
    object
    EditorCurveBindingUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Animations.Rigging
    Assembly: Unity.Animation.Rigging.Editor.dll
    Syntax
    public static class EditorCurveBindingUtils

    Methods

    CollectPositionBindings(Transform, Transform, List<EditorCurveBinding>)

    Collects translation bindings for a Transform component.

    Declaration
    public static void CollectPositionBindings(Transform root, Transform transform, List<EditorCurveBinding> bindings)
    Parameters
    Type Name Description
    Transform root

    The root to which the bindings are relative. Generally the root has the Animator which animates the Transform.

    Transform transform

    The transform whose bindings are collected.

    List<EditorCurveBinding> bindings

    List to which the bindings for the Transform will be appended.

    CollectPropertyBindings(Transform, MonoBehaviour, string, List<EditorCurveBinding>)

    Collects the binding for a single float property on a MonoBehavior.

    Declaration
    public static void CollectPropertyBindings(Transform root, MonoBehaviour component, string propertyName, List<EditorCurveBinding> bindings)
    Parameters
    Type Name Description
    Transform root

    The root to which the bindings are relative. Generally the root has the Animator which animates the float property.

    MonoBehaviour component

    The component on which the property is found.

    string propertyName

    The name of the float property whose bindings are collected.

    List<EditorCurveBinding> bindings

    List to which the bindings for the Transform will be appended.

    CollectRotationBindings(Transform, Transform, List<EditorCurveBinding>)

    Collects rotation bindings for a Transform component.

    Declaration
    public static void CollectRotationBindings(Transform root, Transform transform, List<EditorCurveBinding> bindings)
    Parameters
    Type Name Description
    Transform root

    The root to which the bindings are relative. Generally the root has the Animator which animates the Transform.

    Transform transform

    The transform whose bindings are collected.

    List<EditorCurveBinding> bindings

    List to which the bindings for the Transform will be appended.

    CollectScaleBindings(Transform, Transform, List<EditorCurveBinding>)

    Collects scale bindings for a Transform component.

    Declaration
    public static void CollectScaleBindings(Transform root, Transform transform, List<EditorCurveBinding> bindings)
    Parameters
    Type Name Description
    Transform root

    The root to which the bindings are relative. Generally the root has the Animator which animates the Transform.

    Transform transform

    The transform whose bindings are collected.

    List<EditorCurveBinding> bindings

    List to which the bindings for the Transform will be appended.

    CollectTRBindings(Transform, Transform, List<EditorCurveBinding>)

    Collects translation, rotation bindings for a Transform component.

    Declaration
    public static void CollectTRBindings(Transform root, Transform transform, List<EditorCurveBinding> bindings)
    Parameters
    Type Name Description
    Transform root

    The root to which the bindings are relative. Generally the root has the Animator which animates the Transform.

    Transform transform

    The transform whose bindings are collected.

    List<EditorCurveBinding> bindings

    List to which the bindings for the Transform will be appended.

    CollectTRSBindings(Transform, Transform, List<EditorCurveBinding>)

    Collects translation, rotation and scale bindings for a Transform component.

    Declaration
    public static void CollectTRSBindings(Transform root, Transform transform, List<EditorCurveBinding> bindings)
    Parameters
    Type Name Description
    Transform root

    The root to which the bindings are relative. Generally the root has the Animator which animates the Transform.

    Transform transform

    The transform whose bindings are collected.

    List<EditorCurveBinding> bindings

    List to which the bindings for the Transform will be appended.

    CollectVector3Bindings<T>(Transform, T, string, List<EditorCurveBinding>)

    Collects EditorCurveBindings for a Vector3 on a MonoBehavior.

    Declaration
    public static void CollectVector3Bindings<T>(Transform root, T component, string propertyName, List<EditorCurveBinding> bindings) where T : MonoBehaviour
    Parameters
    Type Name Description
    Transform root

    The root to which the bindings are relative. Generally the root has the Animator which animates the Vector3.

    T component

    The MonoBehavior on which the Vector3 is found.

    string propertyName

    Name of the Vector3 variable we are constructing a binding for.

    List<EditorCurveBinding> bindings

    List to which the bindings for the Vector3 will be appended.

    Type Parameters
    Name Description
    T

    The Type of the MonoBehavior the Vector3 is found on.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)