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

    Class WeightRangeAttribute

    By default, weight appears as a numeric input field in the Inspector. Decorate WeightedTransform or WeightedTransformArray fields with this attribute to make it display using a slider with the specified range. See also OnValidate(ref WeightedTransformArray, Single, Single).

    Inheritance
    Object
    Attribute
    PropertyAttribute
    WeightRangeAttribute
    Inherited Members
    PropertyAttribute.order
    Namespace: UnityEngine.Animations.Rigging
    Syntax
    [AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
    public sealed class WeightRangeAttribute : PropertyAttribute, _Attribute

    Constructors

    WeightRangeAttribute(Single, Single)

    Constructs a new WeightRangeAttribute instance with the specified range. A value of NaN for either end of the range will permit any value to be entered.

    Declaration
    public WeightRangeAttribute(float min, float max)
    Parameters
    Type Name Description
    Single min

    The smallest permissible value the weight may have.

    Single max

    The largest permissible value the weight may have.

    Fields

    max

    The largest permissible value the weight may have.

    Declaration
    public readonly float max
    Field Value
    Type Description
    Single

    min

    The smallest permissible value the weight may have.

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