Make Some Beautiful Glass- Game Dev Series 58

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.

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.

Someone behind the window is visible now.

You can change the color of window as your wish.

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

QA Testing: Defining the Right Skill Set

How To: Configure NFT Bid Bot For Outbid Module — Updated

Generating Code via Annotations in Kotlin

How To Use Pusloid Application In Streamlabs OBS

Azure Management using Hashicorp Terraform

Representation of three-dimensional images using holograms

Mobile App Development Tips for Your Business

Role Your Own File System Monitor With Tripwire And Splunk

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
S.J. Jason Liu

S.J. Jason Liu

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

More from Medium

Building a Custom Cinemachine Virtual Camera Zoom Feature with One Button in Unity

Converting from 3D to 2D in Unity

HitBox Attack System in Unity

Working with Cinemachine