Hello.
I would want to change the Tile color according if it’s available for movement or not.
For that I’ve created a new material called GridMaterial and assigned the Grid Texture you give to the base color of the new GridMaterial created.
After that I assign this gridMaterial to the Quad’s materials in its meshRenderer but after, I dont know how to access to the color by script and change it.
If I change it manually, it work fine but in the script when if I change the meshRenderer Color, it’s all the map which change
I’ve tried this way :
public void Show()
{
meshRenderer.enabled = true;
meshRenderer.material.color = new Color(0, 255, 0);
}
but everything turn green
I understand I must access to the color of the GRidMaterial assigned to my Quad but I don’t see too much how to do that …
Any suggestion?
Thanks.
François