Hi.
We’re developing a racing game right now and something we feel to be an obvious feature is the ability to choose what colour your car should have.
What I’ve been able to find so far has been the possibility of changing the colour of a whole material, but I’m after the ability to change the tint of specific parts of the texture. Essentially meaning that parts of the vehicle will be completely unchanged by my colour selections, while others are. The results should be like in the following picture:
As you can see, the two cars on the left are the same model, bot the green part on the top car has been replaced with red on the bottom one, while the yellow parts, taillights and other details in the texture remain unchanged. This is what I want to acheive.
Anyone know how?
public class texturechange : MonoBehaviour {
public Texture[] Tex ;
public GameObject[] g=new GameObject[15];
int maxTextures;
int arrayPos = 0;
//private int i=0;
void Start ()
{
maxTextures = Tex.Length-1;
//g.renderer.material.mainTexture=tex*;*