Class RaycastResultStateExtensions
Extensions for the RaycastResultState enum.
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 | 
  | 
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 | 
  | 
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 | 
  |