Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Newer Event Management

Discussion in 'Scripting' started by the_lemur, Sep 1, 2015.

  1. the_lemur

    the_lemur

    Joined:
    Apr 3, 2013
    Posts:
    104
    When dealing with all the different script inputs - and also the UI elements that pop up, I have a lot of problems controlling what elements have focus and what should be responding to different mouse/key events at any given time.

    My question is should I just route ALL input through the new UI-event system, or only use the EventSystem for UI events, and create a custom Event manager for all the game events?
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    I'm a big fan of driving all of the input through the EventSystem