Struct FloatRange | Perception | 0.5.0-preview.1
docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Experimental.Perception.Randomization.Samplers
    Syntax
    [Serializable]
    public struct FloatRange

    Constructors

    FloatRange(Single, Single)

    Constructs a float range

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

    The smallest value contained within the range

    Single 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
    Single

    minimum

    The smallest value contained within the range

    Declaration
    public float minimum
    Field Value
    Type Description
    Single

    Methods

    Validate()

    Assert whether this range is valid

    Declaration
    public void Validate()
    Exceptions
    Type Condition
    ArgumentException
    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