Esempio n. 1
0
        void Update()
        {
            if (VarjoManager.Instance.IsLayerVisible())
            {
                if (Input.GetKeyDown(key))
                {
                    VarjoPlugin.RequestGazeCalibration();
                }
            }

            if (VarjoManager.Instance.GetButtonDown() && useApplicationButton)
            {
                VarjoPlugin.RequestGazeCalibration();
            }
        }
        void RequestGazeCalibration()
        {
            if (!useCalibrationParameters)
            {
                VarjoPlugin.RequestGazeCalibration();
            }
            else
            {
                parameters = new VarjoPlugin.GazeCalibrationParameters[2];

                parameters[0]       = new VarjoPlugin.GazeCalibrationParameters();
                parameters[0].key   = "GazeCalibrationType";
                parameters[0].value = calibrationType == CalibrationType.LEGACY ? "Legacy" : "Fast";

                parameters[1]       = new VarjoPlugin.GazeCalibrationParameters();
                parameters[1].key   = "OutputFilterType";
                parameters[1].value = outputFilterType == OutputFilterType.STANDARD ? "Standard" : "None";

                VarjoPlugin.RequestGazeCalibrationWithParameters(parameters);
            }
        }