Hello, I have an action based controller and direct interactor with default selected item. How can I prevent the interactor from dropping the item but still have a possibility to read the “Select Action” value?
Hello, I have an action based controller and direct interactor with default selected item. How can I prevent the interactor from dropping the item but still have a possibility to read the “Select Action” value?
Best way I found was to disable the Select action when holding an item. Drag the action from the control scheme into the class in ed, then disable/enable as needed.
using UnityEngine.InputSystem;
public InputActionReference gripInputAction = null;
gripInputAction.action.Disable();