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

    Class MaxAttribute

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

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

    Constructors

    MaxAttribute(Single)

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

    Declaration
    public MaxAttribute(float max)
    Parameters
    Type Name Description
    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 float max
    Field Value
    Type Description
    Single
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)