Class ActiveRangeExtensions | DOTS Timeline | 0.5.1-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Class ActiveRangeExtensions

    Extension Methods for ActiveRange

    Inheritance
    Object
    ActiveRangeExtensions
    Namespace: Unity.Scheduler
    Syntax
    public static class ActiveRangeExtensions

    Methods

    Contains(ActiveRange, ActiveRange)

    Returns whether the given range is completely contained within this range

    Declaration
    public static bool Contains(this ActiveRange range, ActiveRange other)
    Parameters
    Type Name Description
    ActiveRange range
    ActiveRange other
    Returns
    Type Description
    Boolean

    Contains(ActiveRange, DiscreteTime)

    Returns whether the time is within the range

    Declaration
    public static bool Contains(this ActiveRange range, DiscreteTime t)
    Parameters
    Type Name Description
    ActiveRange range
    DiscreteTime t
    Returns
    Type Description
    Boolean

    IsValid(ActiveRange)

    Returns true the range is valid

    Declaration
    public static bool IsValid(this ActiveRange range)
    Parameters
    Type Name Description
    ActiveRange range
    Returns
    Type Description
    Boolean

    Length(ActiveRange)

    The length of the active range.

    Declaration
    public static DiscreteTime Length(this ActiveRange range)
    Parameters
    Type Name Description
    ActiveRange range
    Returns
    Type Description
    DiscreteTime

    Overlaps(ActiveRange, ActiveRange)

    Return true if the ranges overlap

    Declaration
    public static bool Overlaps(this ActiveRange range, ActiveRange other)
    Parameters
    Type Name Description
    ActiveRange range
    ActiveRange other
    Returns
    Type Description
    Boolean
    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