Class XRGeneralSettings
General settings container used to house the instance of the active settings as well as the manager instance used to load the loaders with.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Management
Assembly: Unity.XR.Management.dll
Syntax
public class XRGeneralSettings : ScriptableObject
Fields
k_SettingsKey
The key used to query to get the current loader settings.
Declaration
public static string k_SettingsKey
Field Value
Type | Description |
---|---|
string |
Properties
AssignedSettings
The current active manager used to manage XR lifetime.
Declaration
public XRManagerSettings AssignedSettings { get; set; }
Property Value
Type | Description |
---|---|
XRManagerSettings |
InitManagerOnStart
Used to set if the manager is activated and initialized on startup.
Declaration
public bool InitManagerOnStart { get; set; }
Property Value
Type | Description |
---|---|
bool |
Instance
The current settings instance.
Declaration
public static XRGeneralSettings Instance { get; set; }
Property Value
Type | Description |
---|---|
XRGeneralSettings |
Manager
The current active manager used to manage XR lifetime.
Declaration
public XRManagerSettings Manager { get; set; }
Property Value
Type | Description |
---|---|
XRManagerSettings |
Methods
InternalPauseStateChanged(PauseState)
For internal use only.
Declaration
[Obsolete("Deprecating internal only API.")]
public void InternalPauseStateChanged(PauseState state)
Parameters
Type | Name | Description |
---|---|---|
PauseState | state |
InternalPlayModeStateChanged(PlayModeStateChange)
For internal use only.
Declaration
public void InternalPlayModeStateChanged(PlayModeStateChange state)
Parameters
Type | Name | Description |
---|---|---|
PlayModeStateChange | state |