NRProjectConfig.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /****************************************************************************
  2. * Copyright 2019 Nreal Techonology Limited. All rights reserved.
  3. *
  4. * This file is part of NRSDK.
  5. *
  6. * https://www.nreal.ai/
  7. *
  8. *****************************************************************************/
  9. namespace NRKernal
  10. {
  11. using System.Collections.Generic;
  12. using UnityEngine;
  13. [System.Serializable]
  14. public class NRProjectConfig: ScriptableObject
  15. {
  16. public List<NRDeviceType> targetDeviceTypes = new List<NRDeviceType> {
  17. NRDeviceType.NrealLight,
  18. NRDeviceType.NrealAir,
  19. };
  20. public string GetTargetDeviceTypesDesc()
  21. {
  22. string devices = string.Empty;
  23. foreach (var device in targetDeviceTypes)
  24. {
  25. if (devices != string.Empty)
  26. devices += "|";
  27. devices += device;
  28. }
  29. return devices;
  30. }
  31. }
  32. }