Class ARCoreSettings
Holds settings that are used to configure the Google ARCore XR Plug-in.
Inherited Members
Namespace: UnityEditor.XR.ARCore
Syntax
[Serializable]
[XRConfigurationData("Google ARCore", "UnityEditor.XR.ARCore.ARCoreSettings")]
public class ARCoreSettings : ScriptableObject
Properties
currentSettings
The ARCoreSettings for the Project.
Declaration
public static ARCoreSettings currentSettings { get; set; }
Property Value
Type | Description |
---|---|
ARCoreSettings |
Remarks
The current settings object, if one exists, is saved in the Project's XR Settings folder. You can also view and modify these settings in the XR Plug-in Management section of your Project Settings window.
depth
Specifies whether depth is required or optional for this app.
Declaration
public ARCoreSettings.Requirement depth { get; set; }
Property Value
Type | Description |
---|---|
ARCoreSettings.Requirement |
Remarks
Set to Required if the app should only be downloadable by devices with depth support.
ignoreGradleVersion
Whether to validate the Gradle version during a Player build.
Declaration
public bool ignoreGradleVersion { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
When building an Android Player with ARCore enabled, this ARCore package checks the Gradle version and warns if it determines
the Gradle version to be too low. You can suppress this check (and resulting warning notification) by setting
ignoreGradleVersion
to true
.
requirement
Specifies whether ARCore is required or optional for this app.
Declaration
public ARCoreSettings.Requirement requirement { get; set; }
Property Value
Type | Description |
---|---|
ARCoreSettings.Requirement |
Remarks
Set to Required if the app should only be downloadable by devices with ARCore support.
Methods
GetOrCreateSettings()
Gets the currently selected settings, or creates a default one if no ARCoreSettings has been set in Project Settings.
Declaration
public static ARCoreSettings GetOrCreateSettings()
Returns
Type | Description |
---|---|
ARCoreSettings | The ARCore settings to use for the current Player build. |
Remarks
The current settings object, if one exists, is saved in the Project's XR Settings folder. You can also view and modify these settings in the XR Plug-in Management section of your Project Settings window.