Andy the android Andy the android - 1 month ago 5
Android Question

Unity2d empty object color

How to apply a solid color to an empty object in Unity 2D ?

This is the object's image having a Box Collider 2D


Empty game object doesn't have any component attached which apply or reflect color.

A simple way to do so,

  • Put an empty white sprite of size 10x10 maximum in your project.
  • Drop it into scene.
  • Add collider what you want.
  • Change color or Sprite Renderer. Whatever the color would be.
  • Resize it according to your need.