private void SetEyeTracking_ViveProEyeOffsets(PipeCommands.SetEyeTracking_ViveProEyeOffsets offsets)
 {
     IsSetting = true;
     EyeMoveScaleHorizontalSlider.Value  = offsets.ScaleHorizontal;
     EyeMoveScaleVerticalSlider.Value    = offsets.ScaleVertical;
     EyeMoveOffsetHorizontalSlider.Value = offsets.OffsetHorizontal;
     EyeMoveOffsetVerticalSlider.Value   = offsets.OffsetVertical;
     SetUITexts();
     IsSetting = false;
 }
예제 #2
0
 private void SetEyeTracking_ViveProEyeOffsets(PipeCommands.SetEyeTracking_ViveProEyeOffsets offsets)
 {
     ScaleX  = offsets.ScaleHorizontal;
     ScaleY  = offsets.ScaleVertical;
     OffsetX = offsets.OffsetHorizontal;
     OffsetY = offsets.OffsetVertical;
     if (MonitorPosition != null)
     {
         MonitorPosition.transform.localScale    = new Vector3(ScaleX, ScaleY, 1);
         MonitorPosition.transform.localPosition = new Vector3(OffsetX, OffsetY, 0);
     }
 }