Skip to content

Redundant Unity event function

Matt Ellis edited this page Mar 26, 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.

Clone this wiki locally