Stop Using SendMessage or BroadcastMessage
GameObject.SendMessage uses runtime string reflection to locate functions, which is slow and makes tracking call sites difficult.
The Tip: GameObject.SendMessage uses runtime string reflection to locate functions, which is slow and makes tracking call sites difficult.
How to Use: Replace SendMessage calls with C# interfaces, events, or direct component reference calls.

Article complete?
20 XP lands automatically when you reach the end, and it counts toward today's quests.
Next level
Shader Graph Basics for 2D GamesGame Dev Articles · 1 min · +20 XPRate this article
Comments
Comments are held for moderation before appearing publicly.