Feature request: event for being held
Closed this issue · 4 comments
brunerune commented
Would love to have an event on Grabbable which tells me if an item is being held. Now I have to constantly check the boolean value for every frame to decide if the item has been picked up or dropped. Thank you
Adrian-Wennberg commented
Grabbable has a beingHeld
property that you can check, although I am not sure if this is available in your current version 😕
brunerune commented
Yes, but that is a boolean value, which means that I need to check its value for each frame. I would prefer to have an event that I can listen to, which fires if an item is being picked up or dropped.
Adrian-Wennberg commented
In that case you can use the inputManager.OnManipulationEnded. You can see an example of an event being called with it here.
Adrian-Wennberg commented
This was resolved using the events from the last comment