public class CameraControlInput : MonoBehaviour
{
private InputActions _inputActions;
void Awake()
{
Debug.Log("awake");
_inputActions = new InputActions();
_inputActions.Building.PrimaryAction.performed += a => Debug.Log("qwfqwf");
}
}
Is this supposed to work?
I tried binding all the actions, none of them give me any callbacks. What am I missing? Thanks.
A little offtopic, but do I need to remove the callback when object gets destroyed, or when InputActions instance goes out of scope I don’t need to worry about it?
