-
Notifications
You must be signed in to change notification settings - Fork 6
Canvas
Purpose: User interface interaction is tested with the Canvas component and the associated event trigger callbacks. Button, text, toggle, and slider UI components are tested for correct rendering and event trigger behavior.
Test Setup: Button, text, toggle, and slider UI components in the scene have event triggers assigned that are called when the user’s gaze enters or exits a UI element. The handler for the event triggers controls the color of the TextMesh objects in the scene.
Test Method: Gazing at the UI object on the right side should cause the UI object to become highlighted in orange while the TextMesh object to the left of the UI object should transition from gray to orange. Event triggers have been implemented for enter and exit events, so it is necessary to check that the UI object and TextMesh return to gray when they no longer have the user’s gaze focus. A reticle should exist in the scene that remains at the center of the screen and follows the user’s gaze. This reticle should be gray and become larger and orange when the user’s gaze intersects a UI object.