docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct FloatRange

    A struct representing a continuous range of values

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Perception.Randomization.Samplers
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [Serializable]
    public struct FloatRange

    Constructors

    FloatRange(float, float)

    Constructs a float range

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

    The smallest value contained within the range

    float max

    The largest value contained within the range

    Fields

    maximum

    The largest value contained within the range

    Declaration
    public float maximum
    Field Value
    Type Description
    float

    minimum

    The smallest value contained within the range

    Declaration
    public float minimum
    Field Value
    Type Description
    float

    Methods

    Validate()

    Assert whether this range is valid

    Declaration
    public void Validate()
    Exceptions
    Type Condition
    ArgumentException
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)