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

    Class MinAttribute

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

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

    Constructors

    MinAttribute(Single)

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

    Declaration
    public MinAttribute(float min)
    Parameters
    Type Name Description
    Single min

    Min value that can be set in a property decorator.

    Fields

    min

    Min value that can be set in a property decorator.

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