1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using SC.XR.Unity.Module_InputSystem.InputDeviceGC;
- using SC.XR.Unity.Module_InputSystem;
- using UnityEngine.UI;
- using TMPro;
- using System;
- public class FoveationTest : MonoBehaviour
- {
- public Toggle toggle;
- public Slider GainX;
- public Slider GainY;
- public Slider Area;
- public Slider Min;
- public TextMeshProUGUI toggleText;
- public TextMeshProUGUI GainXText;
- public TextMeshProUGUI GainYText;
- public TextMeshProUGUI AreaText;
- public TextMeshProUGUI MinText;
- // Update is called once per frame
- void Update()
- {
- //if (API_GSXR_Slam.SlamManager == null || API_GSXR_Slam.SlamManager.IsRunning == false)
- // return;
- //if (toggle) {
- // API_GSXR_Slam.SlamManager.settings.foveationGain = Vector2.zero;
- // API_GSXR_Slam.SlamManager.settings.foveationArea = 0;
- // //toggleText.text = GSXRPluginAndroid.A_foveationGainX.ToString();
- //}
- //if (GainX) {
- // API_GSXR_Slam.SlamManager.settings.foveationGain.x = GainX.value;
- // GainXText.text = "GainX:" + API_GSXR_Slam.SlamManager.settings.foveationGain.x.ToString();
- //}
- //if (GainY) {
- // API_GSXR_Slam.SlamManager.settings.foveationGain.y = GainY.value;
- // GainYText.text = "GainY:" + API_GSXR_Slam.SlamManager.settings.foveationGain.y.ToString();
- //}
- //if (Area) {
- // API_GSXR_Slam.SlamManager.settings.foveationArea = Area.value;
- // AreaText.text = "Area:" + API_GSXR_Slam.SlamManager.settings.foveationArea.ToString();
- //}
- //if (Min) {
- // API_GSXR_Slam.SlamManager.settings.foveationMinimum = (1.0f / (float)Math.Pow(2, Min.value));
- // MinText.text = "Min:" + API_GSXR_Slam.SlamManager.settings.foveationMinimum.ToString();
- //}
- }
- }
|