This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
flutter-unity-view-widget/example/unity/ARDemoApp/Library/PackageCache/com.unity.xr.arkit@3.0.0-pr.../Runtime/ARKitLoaderSettings.cs

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
}
}
}