Materials issue

You know when your scenes playing and you mess with materials, and then you stop the scene and the materials remain changed?

I have to create a scenario where the materials change in - game (via script - I have that sorted) but when you stop they go back to pre-play state.

Theres no Editor.HasStoppedPlaying() Which would be good to reassign the original materials, so what do people suggest I do to preserve and reset the materials after I stop the scene playing?

Thanks!
~A

This occurs because your are modifying the actual assets rather than instances of the assets.

You might benefit from enabling the option “Verify Saving Assets” from the Unity preferences window. Please let me know if this does help because I would be interested to know :slight_smile: