Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Player Input script OnActionCanceled.

Discussion in 'Input System' started by lShadowl, Jun 24, 2020.

  1. lShadowl

    lShadowl

    Joined:
    Jan 30, 2017
    Posts:
    11
    When using a InputActions Object on its own, I can check whether an action has been triggered with
    InputActions.ActionMap.Action.performed
    but I can also check if the action has been canceled with
    InputActions.ActionMap.Action.canceled


    Now the PlayerInput Script sends Messages to the Gameobject like
    OnAction
    But I don't see any way to get a message when the action is canceled. How can this be done ?