Class RaycastResultStateExtensions | Magic Leap XR Plugin | 6.0.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class RaycastResultStateExtensions

    Extensions for the RaycastResultState enum.

    Inheritance
    Object
    RaycastResultStateExtensions
    Namespace: UnityEngine.XR.MagicLeap
    Syntax
    public static class RaycastResultStateExtensions

    Methods

    Done(RaycastResultState)

    Whether the RaycastResultState has completed or not.

    Declaration
    public static bool Done(this RaycastResultState state)
    Parameters
    Type Name Description
    RaycastResultState state

    The RaycastResultState being extended.

    Returns
    Type Description
    Boolean

    true if state is not Pending.

    Error(RaycastResultState)

    Whether the RaycastResultState represents an error condition.

    Declaration
    public static bool Error(this RaycastResultState state)
    Parameters
    Type Name Description
    RaycastResultState state

    The RaycastResultState being extended.

    Returns
    Type Description
    Boolean

    true if the Success(RaycastResultState) returns false.

    Success(RaycastResultState)

    Whether the RaycastResultState represents a successful raycast hit.

    Declaration
    public static bool Success(this RaycastResultState state)
    Parameters
    Type Name Description
    RaycastResultState state

    The RaycastResultState being extended.

    Returns
    Type Description
    Boolean

    true if state represents a successful raycast hit (i.e., SuccessHitObserved or SuccessHitUnobserved) otherwise false.

    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