UXRSDKConfig.cs 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using UnityEngine;
  2. namespace Rokid.UXR.Config
  3. {
  4. [System.Serializable]
  5. public class UXRSDKConfig : ScriptableObject
  6. {
  7. #region 配置
  8. private static UXRSDKConfig _instance;
  9. private static void LoadInstance()
  10. {
  11. _instance = Resources.Load<UXRSDKConfig>("UXRSDKConfig");
  12. if (_instance == null)
  13. {
  14. RKLog.Error("Not Find SDK Config, Will Use Default App Config.");
  15. }
  16. }
  17. public static UXRSDKConfig Instance
  18. {
  19. get
  20. {
  21. if (_instance == null)
  22. {
  23. LoadInstance();
  24. }
  25. return _instance;
  26. }
  27. }
  28. #endregion
  29. #region 配置属性
  30. public bool URPActive;
  31. public bool LogActive = false;
  32. public bool MRCActive = true;
  33. public LayerMask MRCCameraRenderLayer;
  34. public RenderingPath MRCCameraRenderingPath;
  35. #endregion
  36. }
  37. }