Tag Info

New answers tagged


If zou want to create a transparent material you have to make your material "translucent". Glass also has the property that its surface is very shiny, so you also have to change the "Translucency Lighting Mode" to "Surface", otherwise you can not control highlights on the surface. Be sure to adjust the "Opacity" output pin of your material. You can have a ...


You can access the material of the lamp object in the Unity-API. public GameObject lampObject; public bool isGreen; public Color greenColor, redColor; private void Update() { lampObject.material.color = isGreen ? greenColor : redColor; } This will set the material color of the lamp to a specified value you can edit in the inspector. It is also ...

Top 50 recent answers are included