docs.unity3d.com
    显示 / 隐藏目录

    Class MinMaxAttribute

    Attribute used to clamp a float or in variable between a min and max value in a property decorator.

    Inheritance
    Object
    Attribute
    MinMaxAttribute
    Namespace: Unity.MARS
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public sealed class MinMaxAttribute : Attribute, _Attribute

    Constructors

    MinMaxAttribute(Single, Single)

    Attribute used to clamp a float or in variable between a min and max value in a property decorator.

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

    Min value that can be set in a property decorator.

    Single max

    Max value that can be set in a property decorator.

    Fields

    max

    Max value that can be set in a property decorator.

    Declaration
    public readonly float max
    Field Value
    Type Description
    Single

    min

    Min value that can be set in a property decorator.

    Declaration
    public readonly float min
    Field Value
    Type Description
    Single
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)