This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Assets/ARLocation/Scripts/ARLocation.cs

29 lines
764 B
C#

using UnityEngine;
namespace ARLocation
{
/// <summary>
/// This static class loads the global configuration for the AR + GPS Location
/// plugin.
///
/// Any other global functionality of the plugin should be placed here as
/// well.
/// </summary>
static class ARLocation
{
public static readonly ARLocationConfig Config;
static ARLocation()
{
Config = Resources.Load<ARLocationConfig>("ARLocationConfig");
if (Config == null)
{
Debug.LogWarning("Resources/ARLocationConfig.asset not found; creating new configuration from defaults.");
Config = ScriptableObject.CreateInstance<ARLocationConfig>();
}
}
}
}