[Solved] Can't make it work

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?

You have to enable the action before it can be used.

So you would call _inputActions.Building.PrimaryAction.Enable();

Thank you, that works. Or in my case _inputActions.Building.Enable() is what I’m gonna be using.