Material Switch Problem

Updated on July 11, 2017 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on July 7, 2017

Hey Guys,

In my game i made a shop where the player can select a color to use for his cube. In the editor when testing the game the color change works fine, the player switches color. However, when i export the game and try to select a color it doesn’t work and stays at the default Material. I provided a Pastebin below.

https://pastebin.com/wjNbQ6nF

  • Liked by
Reply
0 on July 11, 2017

After you have switched colors you load a new scene and that probably resets them to default.

  • Liked by
Reply
Cancel