Best practices for editor-only visuals?

I’ve seen related questions but nothing quite the same. Let’s say I’m working on a 2D game, and I want to place enemy spawn locations using the editor, but I’d like graphical representations of these–for design-time only. In other words, I just want to see them in the editor but not in the game. What is the best way to go about this?

I can imagine somewhat roundabout ways, i.e. adding a sprite component that I remove at runtime, but this doesn’t seem like a great solution.


The simplest solution is probably setting an icon for the GameObject. It’s easy to overlook the option, but very handy!

If that’s not enough control, you can have your behavior scripts draw a variety of custom gizmos.