docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MockRuntime

    OpenXR Mock Runtime

    Inheritance
    object
    Object
    ScriptableObject
    OpenXRFeature
    MockRuntime
    Inherited Members
    OpenXRFeature.enabled
    OpenXRFeature.xrGetInstanceProcAddr
    OpenXRFeature.HookGetInstanceProcAddr(IntPtr)
    OpenXRFeature.OnSubsystemCreate()
    OpenXRFeature.OnSubsystemStart()
    OpenXRFeature.OnSubsystemStop()
    OpenXRFeature.OnSubsystemDestroy()
    OpenXRFeature.OnInstanceCreate(ulong)
    OpenXRFeature.OnSystemChange(ulong)
    OpenXRFeature.OnSessionCreate(ulong)
    OpenXRFeature.OnAppSpaceChange(ulong)
    OpenXRFeature.OnSessionStateChange(int, int)
    OpenXRFeature.OnSessionBegin(ulong)
    OpenXRFeature.OnSessionEnd(ulong)
    OpenXRFeature.OnSessionExiting(ulong)
    OpenXRFeature.OnSessionDestroy(ulong)
    OpenXRFeature.OnSessionLossPending(ulong)
    OpenXRFeature.OnInstanceLossPending(ulong)
    OpenXRFeature.OnFormFactorChange(int)
    OpenXRFeature.OnViewConfigurationTypeChange(int)
    OpenXRFeature.OnEnvironmentBlendModeChange(XrEnvironmentBlendMode)
    OpenXRFeature.OnEnabledChange()
    OpenXRFeature.PathToString(ulong)
    OpenXRFeature.StringToPath(string)
    OpenXRFeature.GetCurrentInteractionProfile(ulong)
    OpenXRFeature.GetCurrentInteractionProfile(string)
    OpenXRFeature.GetCurrentAppSpace()
    OpenXRFeature.GetViewConfigurationTypeForRenderPass(int)
    OpenXRFeature.SetEnvironmentBlendMode(XrEnvironmentBlendMode)
    OpenXRFeature.GetEnvironmentBlendMode()
    OpenXRFeature.CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor>, string)
    OpenXRFeature.StartSubsystem<T>()
    OpenXRFeature.StopSubsystem<T>()
    OpenXRFeature.DestroySubsystem<T>()
    OpenXRFeature.OnEnable()
    OpenXRFeature.OnDisable()
    OpenXRFeature.Awake()
    OpenXRFeature.GetAction(InputAction)
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.OpenXR.Features.Mock
    Assembly: solution.dll
    Syntax
    public class MockRuntime : OpenXRFeature

    Fields

    Name Description
    featureId

    The feature id string. This is used to give the feature a well known id for reference.

    ignoreValidationErrors

    Don't fail to build if there are validation errors.

    Properties

    Name Description
    Instance

    Return the singleton instance of the Mock Runtime feature.

    Methods

    Name Description
    CauseInstanceLoss()

    Force MockRuntime instance loss.

    ClearFunctionCallbacks()

    Remove all OpenXR function callbacks

    GetAfterFunctionCallback(string)

    Return the callback set to be called after the given OpenXR function is called

    GetBeforeFunctionCallback(string)

    Return the callback set to be called before the given OpenXR function is called

    HookCreateInstance(IntPtr)

    Called to hook xrGetInstanceProcAddr.

    OnInstanceDestroy(ulong)

    Called before xrDestroyInstance

    RequestExitSession()

    Request to exit the runtime session.

    ResetDefaults()

    Reset the MockRuntime testing settings back to defaults

    SetFunctionCallback(string, AfterFunctionDelegate)

    Set a callback to call before the given OpenXR function is called within the Mock Runtime

    SetFunctionCallback(string, BeforeFunctionDelegate)

    Set a callback to call before the given OpenXR function is called within the Mock Runtime

    Note that since some OpenXR functions are called from within the graphics thread that care should be taken to maintain thread safety from within the callbacks.

    Note that function callbacks can be set prior to the MockRuntime being initialized but will be reset when the mock runtime is shutdown.

    SetFunctionCallback(string, BeforeFunctionDelegate, AfterFunctionDelegate)

    Set the callbacks to call before and after the given OpenXR function is called within the Mock Runtime

    Note that since some OpenXR functions are called from within the graphics thread that care should be taken to maintain thread safety from within the callbacks.

    Note that function callbacks can be set prior to the MockRuntime being initialized but will be reset when the mock runtime is shutdown.

    SetKeepFunctionCallbacks(bool)

    Keep function callbacks when resetting MockRuntime.

    SetSpace(ulong, Vector3, Quaternion, XrSpaceLocationFlags)

    Set the reference space to use for input actions.

    SetSpace(XrReferenceSpaceType, Vector3, Quaternion, XrSpaceLocationFlags)

    Set the reference space to use at Runtime.

    SetViewPose(XrViewConfigurationType, int, Vector3, Quaternion, Vector4)

    Set the runtime ViewPose.

    SetViewState(XrViewConfigurationType, XrViewStateFlags)

    Set the runtime ViewState.

    Events

    Name Description
    onScriptEvent

    Subscribe delegates to ScriptEvents.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, November 1, 2023