Wrist Menu - Attaching to Hand
Firstly I created a new input and just called it menu, Also I created a new socket on the hand mannequin under the skeleton tree which is where we are going to spawn the actor that holds the menu onto.
Next I called the new input which is name Menu and passed into a flip flop so when they press it the first time it spawns the actor that we named Wrist Menu and when we press it again it destroys the actor. Now in the spawn actor we want change the collision to always spawn and ignore collisions otherwise when we spawn it the character model will bug out and lastly we want to set the class to be the actor where we have the menu made then we save that value into a new variable which I named SpawnedWrist.
Lastly, we call a function called AttachActorToComponent from the saved variable and we pass in the target to be SpawnedWrist and the parent to be whatever controller you want which for me was the right controller and finally under socket name we pass in the name we gave to the socket in the mannequin which for me was S_Menu.
VR Project Blog
Status | In development |
Category | Other |
Author | Razorsx |
Tags | Virtual Reality (VR) |
More posts
- Wrist Menu - ButtonsJan 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.