Player Input Component

Can someone please help clarify - if I am using the Player Input component are these OnEnable and OnDisable still necessary or is the Player Input basically taking care of it now?

        private void OnEnable()
        {
            _inputActions.Enable();
            _inputActions.Player.Interact.performed += OnInteractButton;
        }
        private void OnDisable()
        {
            _inputActions.Player.Interact.performed -= OnInteractButton;
            _inputActions.Disable();
        }

Presumably the Movement InputAction is similar to this interact script below and this is all I need for the Player Input above to work

        public void OnInteractButton(InputAction.CallbackContext context)
        {
//Do whatever interaction
            
        }

[/ICODE]

Thanks

As far as I recall with the component you don’t have to do any set up scripting at all. Just set up the Unity Events like you have there and that should work as advertised.