Class ARKitSettings
Holds settings that are used to configure the Apple ARKit XR Plug-in.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEditor.XR.ARKit
Syntax
[Serializable]
[XRConfigurationData("Apple ARKit", "UnityEditor.XR.ARKit.ARKitSettings")]
public class ARKitSettings : ScriptableObject
Properties
currentSettings
Get or set the ARKitSettings to use for the Player build.
Declaration
public static ARKitSettings currentSettings { get; set; }
Property Value
Type | Description |
---|---|
ARKitSettings |
faceTracking
If true
, includes ARKit Face Tracking functionality. If false
, doesn't include ARKit Face Tracking functionality.
Declaration
public bool faceTracking { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
requirement
Determines whether ARKit is required for this app. If set to Required, the app can only be downloaded on devices with ARKit support.
Declaration
public ARKitSettings.Requirement requirement { get; set; }
Property Value
Type | Description |
---|---|
ARKitSettings.Requirement |
Methods
GetOrCreateSettings()
Gets the currently selected settings, or creates default settings if no ARKitSettings have been set in Player Settings.
Declaration
public static ARKitSettings GetOrCreateSettings()
Returns
Type | Description |
---|---|
ARKitSettings | The ARKit settings to use for the current Player build. |