The UI is now a 3D world object containing a functioning message box.
Messages for Puzzles should be set via calling displayText().
Trigger for this should be the player entering a non-colliding hitbox around a puzzle.
Upon leaving the hitbox dismissText() needs to be called, to terminate the current text.
The player can choose to ignore incoming messages, or toggle the display.
Buttons need to be chosen according to future purposes with the VR-Controller.
In testing I had the prefab as a child-object of the camera.
Scale as 0.001 on XYZ and Pos Z of +0.45.
This gave pretty good results for viewing the UI as the player.
This needs to be tested and tweaked in VR.
The UI is now a 3D world object containing a functioning message box.
Messages for Puzzles should be set via calling
displayText()
. Trigger for this should be the player entering a non-colliding hitbox around a puzzle. Upon leaving the hitboxdismissText()
needs to be called, to terminate the current text.The player can choose to ignore incoming messages, or toggle the display. Buttons need to be chosen according to future purposes with the VR-Controller.
In testing I had the prefab as a child-object of the camera. Scale as 0.001 on XYZ and Pos Z of +0.45. This gave pretty good results for viewing the UI as the player. This needs to be tested and tweaked in VR.