E
E
exe2k2021-12-04 10:58:40
Unity
exe2k, 2021-12-04 10:58:40

Why is it better to use events?

From books to video tutorials, it is recommended to use events (at least UnityEvents, at least Event of C # itself). The first advantage is clear to me - it reduces the code cohesion in different scripts (classes).
But what is the performance advantage? Aren't events checked every frame? Can anyone explain clearly how they work and how they affect performance?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-12-04
@freeExec

It is not checked, is it not explained in your books and videos. And why everything that is recommended must be about performance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question