Sitemap

Make Some Beautiful Glass- Game Dev Series 58

Jun 23, 2021

Quick guide: Create transparent window in Unity.

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

Then assign the glass material to the gameobject that we want to use as a glass.

Press enter or click to view image in full size

With this transparent type of material, we can change the alpha(opacity) value to see the effect.

Press enter or click to view image in full size
Someone behind the window is visible now.

You can change the color of window as your wish.

Press enter or click to view image in full size

--

--

S.J. Jason Liu
S.J. Jason Liu

Written by S.J. Jason Liu

A passionate gamer whose goal is to work in video game development.

No responses yet