docs.unity.cn
    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 : object

    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
    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 © 2020 Unity Technologies
    Generated by DocFX
    on Tuesday, August 24, 2021