I want to texture a BoxCollider2D in the scene editor view only. As we have several re-usable trigger areas we want to see while editing. My current approach is below. So my question is, “What’s the best way to approach shading a BoxCollider2D in the editor only?”
void Awake () {
if (!Application.isPlaying) {
// Add my texture
}
}