Search Unity

Question Add a method to PlayerInput unityevents from script

Discussion in 'Input System' started by kurai, Jan 21, 2023.

  1. kurai

    kurai

    Joined:
    Jan 9, 2012
    Posts:
    118
    Hello,
    I have a playerinput set to invoke unityEvents.
    I have put my method visually in the inspector interface but I was wondering if there is a way to add and eventually remove a method connected to an input event from script.