PageTestHandler.cs

Manages the UI logic for the test page in a Looking Glass demo. It supports displaying, clearing, and customizing a test image quilt, along with handling the "Don't Show Again" preference.

Fields & Properties

Button addCalibrationBt

Button to add a new calibration file.

Button clearTestImgBtn

Button to clear or show the test image.

Button doneButton

Button to complete the test and navigate to the last page.

Toggle dontShowAgainToggle

Toggle to remember the user's preference for showing the test page.

Texture testQuilt

Texture used as the test image quilt.

QuiltSettings testQuiltSetting

Quilt settings for the test image.

Methods

void OnAddCalibration()

Opens the calibration file picker.

void OnClearTestImage()

Clears the test image from the display.

void OnShowTestImage()

Displays the test image on the display.

void ToggleTestImage(bool isEnabled)

Toggles the visibility of the test image and updates the HologramCamera state.

  • bool isEnabled: Whether to enable or disable the test image.

void OnDoneClicked()

Completes the test page interactions and navigates to the last page.

Last updated

Was this helpful?