- Home /
Question by
warandoy · Feb 05, 2021 at 07:53 PM ·
androidsave datamaterial color
Material color does not save (Android)
I have a Material assigned to script in inspector. Script changes it's color by carMaterial.color = myColor
. It changes the material color as i expected and saves the material changes when i play game in editor. But on android build the color changes and after i restart the game it resets back to it's default color. Is there any way to save material changes?
Comment
Answer by matthewroxby · Feb 05, 2021 at 10:00 PM
Things like that will not save on their own once they have been built to the device, they will have to be properly saved. I suggest using playerPrefs to save the int values of the RGB values of your material colour, then loading them when the game starts up :)
Your answer
