docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NumericRange

    Defines a numeric range for searching.

    Inheritance
    object
    NumericRange
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.Assets
    Assembly: Unity.Cloud.Assets.dll
    Syntax
    public sealed class NumericRange

    Constructors

    NumericRange(double, bool, double, bool)

    Initializes a new instance of the NumericRange class.

    Declaration
    public NumericRange(double min = -1.7976931348623157E+308, bool inclusiveOfMin = true, double max = 1.7976931348623157E+308, bool inclusiveOfMax = true)
    Parameters
    Type Name Description
    double min

    The minimum value of the range.

    bool inclusiveOfMin

    Whether the minimum value is inclusive.

    double max

    The maximum value of the range.

    bool inclusiveOfMax

    Whether the maximum value is inclusive.

    Methods

    GreaterThan(double)

    Initializes a new instance of the NumericRange class.

    Declaration
    public static NumericRange GreaterThan(double value)
    Parameters
    Type Name Description
    double value

    The exclusive minimum value of the range.

    Returns
    Type Description
    NumericRange

    A NumericRange.

    GreaterThanOrEqual(double)

    Initializes a new instance of the NumericRange class.

    Declaration
    public static NumericRange GreaterThanOrEqual(double value)
    Parameters
    Type Name Description
    double value

    The inclusive minimum value of the range.

    Returns
    Type Description
    NumericRange

    A NumericRange.

    LessThan(double)

    Initializes a new instance of the NumericRange class.

    Declaration
    public static NumericRange LessThan(double value)
    Parameters
    Type Name Description
    double value

    The exclusive maximum value of the range.

    Returns
    Type Description
    NumericRange

    A NumericRange.

    LessThanOrEqual(double)

    Initializes a new instance of the NumericRange class.

    Declaration
    public static NumericRange LessThanOrEqual(double value)
    Parameters
    Type Name Description
    double value

    The inclusive maximum value of the range.

    Returns
    Type Description
    NumericRange

    A NumericRange.

    Extension Methods

    SearchUtilities.And(NumericRange, NumericRangePredicate)
    SearchUtilities.AndNot(NumericRange, NumericRangePredicate)
    SearchUtilities.Or(NumericRange, NumericRangePredicate)
    SearchUtilities.OrNot(NumericRange, NumericRangePredicate)
    In This Article
    Back to top
    Copyright © 2025 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)