TemporalWarpingStatus.cs 659 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4. namespace Leap.Unity
  5. {
  6. public class TemporalWarpingStatus : MonoBehaviour
  7. {
  8. private void Start()
  9. {
  10. this.textField = base.GetComponent<Text>();
  11. if (this.textField == null)
  12. {
  13. base.gameObject.SetActive(false);
  14. }
  15. this._imageLatency.delay = 0.1f;
  16. this._frameDelta.delay = 0.1f;
  17. }
  18. private void Update()
  19. {
  20. }
  21. public LeapVRTemporalWarping cameraAlignment;
  22. protected Text textField;
  23. protected SmoothedFloat _imageLatency = new SmoothedFloat();
  24. protected SmoothedFloat _frameDelta = new SmoothedFloat();
  25. [SerializeField]
  26. private LeapProvider Provider;
  27. }
  28. }