Tag Info

New answers tagged

1

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 ...


0

After playing around with things, I've decided to use Blender's stencil map feature (which is a reduced sort of splat map). It allows me to blend between two tileable textures on the same surface using a third as a stencil without having to use huge textures. I also had to write a custom shader in unity to have my stencil material display, but that wasn't ...


4

Nothing beats practice. Reading the manuals will give you a good start at knowing what features exist and how to use each one individually. But generally, what you want to do is not available in text books so you have to figure out how to assemble parts of what you know to achieve the result you're looking for. That's where practice comes in. And forums. ...



Top 50 recent answers are included