Wrist Menu - Buttons
Now for the buttons I made it so there was 3 buttons each doing a different function, Play Sound, Reset and Quit. I then made it so when the player hovers over the buttons it highlights it in a colour, the reset and quit both are highlighted red while play sound is blue.
Next I made it so that when the player presses the trigger on the left controller it would represent pressing the button which was done in the pawn.
Lastly, I had to make each button do something so for the play sound I created a On Clicked event and called a function called Play Sound 2D which I then passed in an audio file I imported, for the reset button I once again called a On Clicked event and called a function called Open Level (by Name) and passed in the level name and lastly the quit button once again called an On Clicked event and called a function called Quit Game.
VR Project Blog
Status | In development |
Category | Other |
Author | Razorsx |
Tags | Virtual Reality (VR) |
More posts
- Wrist Menu - Attaching to HandJan 19, 2023
- Wrist Menu - DesignJan 18, 2023
- Drawing - Modifying PawnJan 18, 2023
- Drawing - Draw FunctionJan 18, 2023
- Drawing - Construction ScriptJan 18, 2023
- Drawing SurfacesJan 18, 2023
- Ladder Mechanic - Modifying MotionControllerPawnJan 18, 2023
- Ladder Mechanic - Modifying VR HandsJan 18, 2023
- Ladder Mechanic - Modifying Pickup CubeJan 18, 2023
Leave a comment
Log in with itch.io to leave a comment.