Opacity?

How would I adjust the oppasity of a model so for example if a player model got far to close to camera you would get a faded out version of the model ?

Is there also a way to apply this to adjusting tone of texture such as brighter or darker if a player is in a building or something?

You need to change “renderer.material.color.a” for opacity 1 is opaque, 0 is full transparent.

renderer.material.color.g is green component r is red b is blue. You can do many things using these in scripts

You’ll need to make sure you’re using a shader that supports transparency as well. You might not want to have everything running off a transparent shader at the same time though, you’ll want to consider changing the model to a transparent shader only when you want to fade it out.

I dont really understand how to make or how they work (shaders) exactly …