Home > other >  How do handle mouse and keyboard on the Unity of sharing a set of UI
How do handle mouse and keyboard on the Unity of sharing a set of UI

Time:09-19

How to do it after the button press, UI on the corresponding button has been pressed, in addition to the general handle mouse and keyboard, do you want to be a set of UI interface is suitable for the handle and the keyboard,

CodePudding user response:

Look at what you use set of UI library
And then see how the response of the corresponding UI processing
Use is UGUI, I see the UIButton implementation after his rewriting a
Then the keyboard or handle the response of the oneself do a manager manages state, the mouse response that can be obtained through UGUI callback
As for how to unified state may be the more disgusting things point
Anyway, I didn't do is unified, because I have no this demand
  • Related