So in my game I have a ball which goes around on a level.
I have a Customize scene where you can pick a colour to customise the ball (character).
The character material is a Diffuse shader.
The script which changes the character material colour goes as follows:
var Thematerial : Material;
var ColourChange : Color;
function OnMouseDown () {
animation.Play("CubeCustom");
Thematerial.color=ColourChange;
}
Ok so Thematerial is set to Character Texture and the Colour Change is Cyan.
When I click on the cube to change the colour, I have the character shown in the same scene.
The characters colour DOES change in the scene.
So when I play it through the Unity Software, in the Customization Scene, I change the Character texture, and then I go to the next scene and the characters colour does remain the way I changed it to.
Now when I compile and build it and then play it, when I change the colour and go to the next scene, the Characters texture REVERTS to the original.
How do I fix this so it doesn’t revert when I compile it?
Please Help!