docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WeightedTransformHelper

    Helper class to manage WeightedTransform and WeightedTransformArray appearance in the editor.

    Inheritance
    object
    WeightedTransformHelper
    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
    [Obsolete("This is now handled automatically in the inspector for WeightedTransformArray.", false)]
    public static class WeightedTransformHelper

    Methods

    CreateReorderableList(SerializedProperty, ref WeightedTransformArray, RangeAttribute, bool, bool)

    Creates a ReorderableList using a WeightedTransformArray as source.

    Declaration
    public static ReorderableList CreateReorderableList(SerializedProperty property, ref WeightedTransformArray array, RangeAttribute range = null, bool draggable = true, bool displayHeader = false)
    Parameters
    Type Name Description
    SerializedProperty property

    The serialized property of the WeightedTransformArray.

    WeightedTransformArray array

    The source WeightedTransformArray.

    RangeAttribute range

    Range attribute given for weights in WeightedTransform. No boundaries are set if null.

    bool draggable

    Toggles whether a WeightedTransform is draggable in the list. True when WeightedTransform is draggable, false otherwise.

    bool displayHeader

    Displays the ReorderableList header.

    Returns
    Type Description
    ReorderableList

    Returns a new ReorderableList for a WeightedTransformArray.

    WeightedTransformOnGUI(Rect, SerializedProperty, RangeAttribute)

    Display a single WeightedTransform in the editor.

    Declaration
    public static void WeightedTransformOnGUI(Rect rect, SerializedProperty property, RangeAttribute range = null)
    Parameters
    Type Name Description
    Rect rect

    Rectangle on the screen to use for the WeightedTransform.

    SerializedProperty property

    Serialized property

    RangeAttribute range

    Range attribute given for weights in WeightedTransform. No boundaries are set if null.

    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)