Search Results for

    Show / Hide Table of Contents

    Class RangeAttribute

    Used to make a float or int variable in a script be restricted to a specific range. When used, the float or int will be shown as a slider in the editor instead of default number field.

    Inheritance
    System.Object
    RangeAttribute
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public sealed class RangeAttribute : Attribute

    Constructors

    RangeAttribute(Single, Single)

    Initializes a new instance of the RangeAttribute class.

    Declaration
    public RangeAttribute(float min, float max)
    Parameters
    System.Single min

    The minimum range value.

    System.Single max

    The maximum range value.

    Fields

    Max

    The maximum range value.

    Declaration
    public float Max
    Field Value
    System.Single

    Min

    The minimum range value.

    Declaration
    public float Min
    Field Value
    System.Single

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)

    See Also

    System.Attribute
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat