Class ARKitSettings
Holds settings that are used to configure the ARKit XR Plugin.
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: UnityEditor.XR.ARKit
Assembly: Unity.XR.ARKit.Editor.dll
Syntax
[Serializable]
[XRConfigurationData("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
, installs ARKit Face Tracking package if it's not already installed. If false
, indicates that ARKit Face Tracking is not currently installed.
Declaration
public bool faceTracking { get; set; }
Property Value
Type | Description |
---|---|
bool |
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. |