ObserverViewConfig.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.Experimental.StreammingCast
  10. {
  11. using UnityEngine;
  12. /// <summary> An observer view configuration. </summary>
  13. public struct ObserverViewConfig
  14. {
  15. /// <summary> The server IP. </summary>
  16. [SerializeField]
  17. public string serverIP;
  18. [SerializeField]
  19. public bool useDebugUI;
  20. [SerializeField]
  21. public Vector3 offset;
  22. /// <summary> Constructor. </summary>
  23. /// <param name="serverip"> The serverip.</param>
  24. /// <param name="usedebug"> (Optional) True to usedebug.</param>
  25. public ObserverViewConfig(string serverip, Vector3 offset, bool usedebug = false)
  26. {
  27. this.serverIP = serverip;
  28. this.useDebugUI = usedebug;
  29. this.offset = offset;
  30. }
  31. public override string ToString()
  32. {
  33. return serverIP;
  34. }
  35. }
  36. }