Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ISubmitHandler vs IPointerClickHandler ?

Discussion in 'Scripting' started by FlightOfOne, Oct 15, 2020.

  1. FlightOfOne

    FlightOfOne

    Joined:
    Aug 1, 2014
    Posts:
    659
    Hello,

    I can't find much on the ISubmitHandler.

    This is all that the scripting doc says:
    How does it behave differently from IPointerClickHandler (I know you have to click and release on the same element)?

    I am trying to use it in a custom input module.

    Code (CSharp):
    1. ExecuteEvents.ExecuteHierarchy(enteredObjects[i], pointerEventData, ExecuteEvents.selectHandler);
    Which one should I be using? As far as I can see they both seem to behave the same way?

    Thanks!
     
  2. Defiled

    Defiled

    Joined:
    Feb 10, 2014
    Posts:
    43
    I would assume that IPointerClickHandler handles all click events and ISubmitHandler only handles button click events?