ARCameraGlobalSettings.cs 810 B

12345678910111213141516171819202122232425262728
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace Imagine.WebAR{
  5. [CreateAssetMenu(fileName = "ARCameraGlobalSettings", menuName = "Imagine/ARCameraGlobalSettings", order = 1)]
  6. public class ARCameraGlobalSettings : ScriptableObject
  7. {
  8. public enum FacingMode {BACK, FRONT, DONT_OVERRIDE};
  9. [SerializeField] public FacingMode facingMode;
  10. private static ARCameraGlobalSettings _instance;
  11. public static ARCameraGlobalSettings Instance
  12. {
  13. get
  14. {
  15. if(_instance == null)
  16. {
  17. _instance = Resources.Load<ARCameraGlobalSettings>("ARCameraGlobalSettings");
  18. }
  19. return _instance;
  20. }
  21. }
  22. }
  23. }