Class MinMaxAttribute | Properties UI | 1.0.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class MinMaxAttribute

    Tag a or a field to draw it as a min-max slider.

    Inheritance
    Object
    MinMaxAttribute
    Namespace: Unity.Properties.UI
    Syntax
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
    public sealed class MinMaxAttribute : PropertyAttribute

    Constructors

    MinMaxAttribute(Single, Single)

    Constructs a new MinMaxAttribute with specified min and max values.

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

    The minimum allowed value.

    Single max

    The maximum allowed value.

    Fields

    Max

    High-limit value.

    Declaration
    public readonly float Max
    Field Value
    Type Description
    Single

    Min

    Low-limit value.

    Declaration
    public readonly float Min
    Field Value
    Type Description
    Single
    In This Article
    • Constructors
      • MinMaxAttribute(Single, Single)
    • Fields
      • Max
      • Min
    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