docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 22 February 2021