S5-VR-Game / game

2 stars 0 forks source link

[UI] message box #31

Closed JudiTeller closed 11 months ago

JudiTeller commented 12 months ago

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.