public static void LoadOnce() { if (_instance) { return; } _instance = new GameObject("OCSVRWorks").AddComponent <OCSVRWorks>(); }
private void Awake() { _settings = Resources.Load <AirXRServerSettings>("AirXRServerSettings"); if (_settings == null) { _settings = ScriptableObject.CreateInstance <AirXRServerSettings>(); } if (_settings.UseFoveatedRendering == false) { return; } OCSVRWorks.LoadOnce(); }