Let Udon know which hand (left/right) a VRC Pickup is being held in
complete
RavenWorks
I want to make a remote control that responds to joystick inputs while it's being held -- but it would be confusing if someone picked up the remote in their left hand but had to operate it with their right joystick. I could make it listen to BOTH joysticks, but then they would have none left to navigate with. So, I want to be able to know (in Udon) which hand the pickup is being held in, so that I can decide to respond to only those inputs; it could be either as an argument to OnPickup, or just as a property that an Udon script can look at. Is there any way to do this?
Log In
Fax
complete
Glad you found a solution!
RavenWorks
oh my god, and there's VRC.Udon.Common.UdonInputEventArgs.handType being passed to things like InputMoveVertical. oof
RavenWorks
Wow, I feel double silly -- the UdonSharp docs also mention that there's VRCPickup.currentHand
RavenWorks
Never mind, it exists: VRCPlayerApi.GetPickupInHand