30/12/22 - Breakthrough
Terribly sorry for the long delay, I had an unfortunate series of events where I got sick, then got Covid, then Christmas came around. From now on updates will be happening as often as every other day as I finally have the time to get back into things.
In terms of the breakthrough I finally figured out how to access the controller data directly and how to store specific types of data to its accessible from other blueprints. The crucial thing I missed is called the VR Interaction BPI, this is a class that stores relevant data such as trigger axis pressed/released. This is updated directly from the VR pawn and can be accessed from other blueprints by adding it as an interface.
https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/User...
I found how it is used through the pistol blueprint that comes with the template
The input action triggers an event with the target being the VR interaction BPI with the object that is being held passed through as the target. As long as the target has the attached BPI interface, it will trigger the event in the target's blueprint. The below image shows the Interface Event that is started when the player presses the trigger with the gun being held.
I also managed to accidentally delete all of the stuff I had done prior. While I was a bit worried at this, it may give me ample opportunity to implement this feature and improve upon what I already had.
Update
I also found out how to add button controls to the template, they have to be added manually in the settings as they don't come implemented by default all of the Button_ mappings shown below I added myself.
Currently I have set it to just oculus as that is what I have but I can add to it if need be. Now I should be able to add these to the VR Interaction BPI to make them accessible to other blueprints.
VR Dev Blog
Status | In development |
Author | Georgonzola |
More posts
- 20/01/23 - Button, lever and in-game menu (final state)Jan 20, 2023
- 20/01/23 - Painting tool (final state)Jan 20, 2023
- 20/01/23 - Radial Menu (final state)Jan 20, 2023
- 19/01/23 - Button, Lever & In Game Menu progressJan 19, 2023
- 19/01/23 - World to local coordinate translationJan 19, 2023
- 06/01/2023 - Door ProgressJan 11, 2023
- 06/01/23 - Radial Menu ProgressJan 06, 2023
- 05/01/23 - Painting Tool ProgressJan 05, 2023
- 19/11/22 - Current ProgressNov 19, 2022
Leave a comment
Log in with itch.io to leave a comment.