36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
|
using UnityEngine.XR.Management;
|
||
|
|
||
|
namespace UnityEngine.XR.ARKit
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Settings to control the ARKitLoader behavior.
|
||
|
/// </summary>
|
||
|
[XRConfigurationData("ARKit", ARKitLoaderConstants.k_SettingsKey)]
|
||
|
[System.Serializable]
|
||
|
public class ARKitLoaderSettings : ScriptableObject
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Static instance that will hold the runtime asset instance we created in our build process.
|
||
|
/// </summary>
|
||
|
#if !UNITY_EDITOR
|
||
|
internal static ARKitLoaderSettings s_RuntimeInstance = null;
|
||
|
#endif
|
||
|
|
||
|
[SerializeField, Tooltip("Allow the ARKit Loader to start and stop subsystems.")]
|
||
|
bool m_StartAndStopSubsystems = false;
|
||
|
|
||
|
public bool startAndStopSubsystems
|
||
|
{
|
||
|
get { return m_StartAndStopSubsystems; }
|
||
|
set { m_StartAndStopSubsystems = value; }
|
||
|
}
|
||
|
|
||
|
public void Awake()
|
||
|
{
|
||
|
#if !UNITY_EDITOR
|
||
|
s_RuntimeInstance = this;
|
||
|
#endif
|
||
|
}
|
||
|
}
|
||
|
}
|