With material, we can make some pretty outlook to gameobjects. Not even a solid color, but also some transparent material.
Create a window
First let’s create a simple window scene.
As you see from the shadow, the light is block by the glass gameobject.
To create a window effect in Unity, we need to change the rendering mode of material from opaque to transparent.
Create a new material and change the rendering mode.
Then assign the glass material to the gameobject that we want to use as a glass.
With this transparent type of material, we can change the alpha(opacity) value to see the effect.
You can change the color of window as your wish.