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 |
---|---|
Vision |
currentSettings
Get or set the Vision
Declaration
public static VisionOSSettings currentSettings { get; set; }
Property Value
Type | Description |
---|---|
Vision |
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 |
---|---|
Vision |
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 |
---|---|
Vision |
realityKitImmersionStyle
The ImmersionStyle to be used for the RealityKit ImmersiveSpace.
Declaration
public VisionOSSettings.ImmersionStyle realityKitImmersionStyle { get; set; }
Property Value
Type | Description |
---|---|
Vision |
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 |
---|---|
Vision |
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 |
---|---|
Vision |
useACTool
Setting this to true will enable the use of the actool utility during player builds to compile reference image libraries.
Declaration
public bool useACTool { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 |
---|---|
Vision |
A VisionOSRuntimeSettings. |
GetOrCreateSettings()
Gets the currently selected settings, or creates default settings if no Vision
Declaration
public static VisionOSSettings GetOrCreateSettings()
Returns
Type | Description |
---|---|
Vision |
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 |
---|---|---|
Vision |
immersionStyle | The immersion style value to convert. |
Returns
Type | Description |
---|---|
string | The Swift string representation of the immersion style. |
Exceptions
Type | Condition |
---|---|
Argument |
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 |
---|---|---|
Vision |
visibility | The visibility value to convert. |
Returns
Type | Description |
---|---|
string | The Swift string representation of the visibility. |
Exceptions
Type | Condition |
---|---|
Argument |
If an unknown value is provided. |