docs.unity3d.com
    目次を表示する/隠す

    Class WeightedTransformHelper

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

    Inheritance
    Object
    WeightedTransformHelper
    Namespace: UnityEditor.Animations.Rigging
    Syntax
    [Obsolete("This is now handled automatically in the inspector for WeightedTransformArray.", false)]
    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)