Class VisionOSSettings
Holds settings that are used to configure the Apple visionOS XR Plug-in.
Implements
Inherited Members
Namespace: UnityEditor.XR.VisionOS
Assembly: Unity.XR.VisionOS.Editor.dll
Syntax
[Serializable]
[XRConfigurationData("Apple visionOS", "UnityEditor.XR.VisionOS.VisionOSSettings")]
public class VisionOSSettings : ScriptableObject, IPackageSettings
Properties
appMode
App mode.
Declaration
public VisionOSSettings.AppMode appMode { get; set; }
Property Value
Type | Description |
---|---|
VisionOSSettings.AppMode |
currentSettings
Get or set the VisionOSSettings to use for the Player build.
Declaration
public static VisionOSSettings currentSettings { get; set; }
Property Value
Type | Description |
---|---|
VisionOSSettings |
foveatedRendering
Controls if foveated rendering is enabled or disabled. This setting only applies to Virtual Reality apps. Foveated rendering requires the Universal Render Pipeline.
Declaration
public bool foveatedRendering { get; set; }
Property Value
Type | Description |
---|---|
bool |
handsTrackingUsageDescription
Hands tracking usage description (added to Info.plist).
Declaration
public string handsTrackingUsageDescription { get; set; }
Property Value
Type | Description |
---|---|
string |
il2CPPLargeExeWorkaround
Setting that determines if the IL2CPP_LARGE_EXECUTABLE_ARM_WORKAROUND flag is used when building an Xcode project.
Declaration
public bool il2CPPLargeExeWorkaround { get; set; }
Property Value
Type | Description |
---|---|
bool |
metalImmersionStyle
The ImmersionStyle to be used for the Metal ImmersiveSpace.
Declaration
public VisionOSSettings.ImmersionStyle metalImmersionStyle { get; set; }
Property Value
Type | Description |
---|---|
VisionOSSettings.ImmersionStyle |
metalImmersiveOverlays
The visibility of persistent system overlays (such as the visionOS hand gesture menus) in Metal immersive spaces.
Declaration
public VisionOSSettings.Visibility metalImmersiveOverlays { get; set; }
Property Value
Type | Description |
---|---|
VisionOSSettings.Visibility |
realityKitImmersionStyle
The ImmersionStyle to be used for the RealityKit ImmersiveSpace.
Declaration
public VisionOSSettings.ImmersionStyle realityKitImmersionStyle { get; set; }
Property Value
Type | Description |
---|---|
VisionOSSettings.ImmersionStyle |
realityKitImmersiveOverlays
The visibility of persistent system overlays (such as the visionOS hand gesture menus) in RealityKit immersive spaces.
Declaration
public VisionOSSettings.Visibility realityKitImmersiveOverlays { get; set; }
Property Value
Type | Description |
---|---|
VisionOSSettings.Visibility |
upperLimbVisibility
Upper limb visibility setting (currently only set at the beginning of an app)
Declaration
public VisionOSSettings.Visibility upperLimbVisibility { get; set; }
Property Value
Type | Description |
---|---|
VisionOSSettings.Visibility |
worldSensingUsageDescription
World sensing usage description (added to Info.plist).
Declaration
public string worldSensingUsageDescription { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
GetOrCreateRuntimeSettings()
Retrieves an existing VisionOSRuntimeSettings asset or creates a new one.
Declaration
public VisionOSRuntimeSettings GetOrCreateRuntimeSettings()
Returns
Type | Description |
---|---|
VisionOSRuntimeSettings | A VisionOSRuntimeSettings. |
GetOrCreateSettings()
Gets the currently selected settings, or creates default settings if no VisionOSSettings have been set in Player Settings.
Declaration
public static VisionOSSettings GetOrCreateSettings()
Returns
Type | Description |
---|---|
VisionOSSettings | The visionOS settings to use for the current Player build. |
ImmersionStyleToString(ImmersionStyle)
Returns the Swift string representation of the provided immersion style value.
Declaration
public static string ImmersionStyleToString(VisionOSSettings.ImmersionStyle immersionStyle)
Parameters
Type | Name | Description |
---|---|---|
VisionOSSettings.ImmersionStyle | immersionStyle | The immersion style value to convert. |
Returns
Type | Description |
---|---|
string | The Swift string representation of the immersion style. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | If an unknown value is provided. |
VisibilityToString(Visibility)
Returns the Swift string representation of the provided visibility value.
Declaration
public static string VisibilityToString(VisionOSSettings.Visibility visibility)
Parameters
Type | Name | Description |
---|---|---|
VisionOSSettings.Visibility | visibility | The visibility value to convert. |
Returns
Type | Description |
---|---|
string | The Swift string representation of the visibility. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | If an unknown value is provided. |