LocalizerSettingsPanel.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*===============================================================================
  2. Copyright (C) 2022 Immersal - Part of Hexagon. All Rights Reserved.
  3. This file is part of the Immersal SDK.
  4. The Immersal SDK cannot be copied, distributed, or made available to
  5. third-parties for commercial purposes without written permission of Immersal Ltd.
  6. Contact sdk@immersal.com for licensing requests.
  7. ===============================================================================*/
  8. using UnityEngine;
  9. using Immersal.AR;
  10. namespace Immersal.Samples
  11. {
  12. public class LocalizerSettingsPanel : MonoBehaviour
  13. {
  14. public void AutoStart(bool value)
  15. {
  16. ImmersalSDK.Instance.Localizer.autoStart = value;
  17. }
  18. public void Downsample(bool value)
  19. {
  20. ImmersalSDK.Instance.downsample = value;
  21. }
  22. public void UseFiltering(bool value)
  23. {
  24. ImmersalSDK.Instance.Localizer.useFiltering = value;
  25. }
  26. public void Pause()
  27. {
  28. ImmersalSDK.Instance.Localizer.Pause();
  29. }
  30. public void Resume()
  31. {
  32. ImmersalSDK.Instance.Localizer.Resume();
  33. }
  34. public void StopLocalizing()
  35. {
  36. ImmersalSDK.Instance.Localizer.StopLocalizing();
  37. }
  38. public void StartLocalizing()
  39. {
  40. ImmersalSDK.Instance.Localizer.StartLocalizing();
  41. }
  42. public void Localize()
  43. {
  44. ImmersalSDK.Instance.Localizer.Localize();
  45. }
  46. public void ClosePanel()
  47. {
  48. Destroy(this.gameObject);
  49. }
  50. }
  51. }