Class XrResultExtensions
Extension methods for XrResult.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public static class XrResultExtensions
Methods
IsError(XrResult)
Indicates whether the XrResult
represents an error code.
Declaration
public static bool IsError(this XrResult xrResult)
Parameters
Type | Name | Description |
---|---|---|
XrResult | xrResult | The |
Returns
Type | Description |
---|---|
bool | true if the |
IsSuccess(XrResult)
Indicates whether the XrResult
represents a success code, inclusive of Success.
Declaration
public static bool IsSuccess(this XrResult xrResult)
Parameters
Type | Name | Description |
---|---|---|
XrResult | xrResult | The |
Returns
Type | Description |
---|---|
bool | true if the |
IsUnqualifiedSuccess(XrResult)
Indicates whether the XrResult
represents an unqualified success, ie Success.
Declaration
public static bool IsUnqualifiedSuccess(this XrResult xrResult)
Parameters
Type | Name | Description |
---|---|---|
XrResult | xrResult | The |
Returns
Type | Description |
---|---|
bool | true if the |