-
Notifications
You must be signed in to change notification settings - Fork 134
Redundant Unity event function
Matt Ellis edited this page Mar 27, 2018
·
2 revisions
This inspection will mark an entire Unity event function as redundant if it has an empty body. Unity does not know that the method is empty and will call it as long as it exists. There is a performance overhead to calling event functions, and empty methods should be removed.
This inspection also provides an Alt+Enter quick fix to remove the redundant event function.
For more details on the cost of calling event functions, please see the Unity blog post 1000 Update() calls.