Class WeightedTransformHelper | Animation Rigging | 1.0.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class WeightedTransformHelper

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

    Inheritance
    Object
    WeightedTransformHelper
    Namespace: UnityEditor.Animations.Rigging
    Syntax
    public static class WeightedTransformHelper

    Methods

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

    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.

    Boolean draggable

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

    Boolean displayHeader

    Displays the ReorderableList header.

    Returns
    Type Description
    UnityEditorInternal.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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023