Class MinValueAttribute | Properties UI | 1.4.4-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class MinValueAttribute

    Attribute used to make a numeric field or property restricted to a specific minimum value.

    Inheritance
    Object
    Attribute
    PropertyAttribute
    InspectorAttribute
    MinValueAttribute
    Inherited Members
    PropertyAttribute.order
    Namespace: Unity.Properties.UI
    Syntax
    public class MinValueAttribute : InspectorAttribute, _Attribute

    Constructors

    MinValueAttribute(Single)

    Attribute used to make a float or int variable in a script be restricted to a specific minimum value.

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

    The minimum allowed value.

    Properties

    Min

    The minimum allowed value.

    Declaration
    public float Min { get; }
    Property Value
    Type Description
    Single
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023