Timeline for How does an event listener work?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 4, 2018 at 14:03 | comment | added | Dunno | @BlackJack I agree and I usually code it this way myself, but the OP asked about performance. Btw, Unity has surprisingly many dubious code design decisions like this, like having static functions almost everywhere. | |
Jan 4, 2018 at 13:56 | comment | added | BlackJack | I wouldn't see a central event loop as optimisation but as writing more readable, comprehensible code opposed to polling spread all over the code base. It also allows ”synthetic” events and events not coming from polling the game engine. | |
Jan 4, 2018 at 12:50 | history | answered | Dunno | CC BY-SA 3.0 |