docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRLoader

    XR Loader abstract class used as a base class for specific provider implementations. Providers should implement subclasses of this to provide specific initialization and management implementations that make sense for their supported scenarios and needs.

    Inheritance
    object
    Object
    ScriptableObject
    XRLoader
    XRLoaderHelper
    Inherited Members
    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.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Management
    Assembly: solution.dll
    Syntax
    public abstract class XRLoader : ScriptableObject

    Methods

    Name Description
    Deinitialize()

    Ask loader to deinitialize all initialized subsystems.

    GetLoadedSubsystem<T>()

    Gets the loaded subsystem of the specified type. Implementation dependent as only implemetnations know what they have loaded and how best to get it..

    GetSupportedGraphicsDeviceTypes(bool)

    Gets the loader's supported graphics device types. If the list is empty, it is assumed that it supports all graphics device types.

    Initialize()

    Initialize the loader. This should initialize all subsystems to support the desired runtime setup this loader represents.

    This is the only method on XRLoader that Management uses to determine the active loader to use. If this method returns true, Management locks this loader as the activeLoader and and stops fall through processing on the loaders list of current loaders.

    If this method returns false, XRManagerSettings continues to process the next loader in the loaders list, or fails completely when the list is exhausted.

    Start()

    Ask loader to start all initialized subsystems.

    Stop()

    Ask loader to stop all initialized subsystems.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)