- Home /
What changes stay when made in Play or Game mode in the editor?
I was under the impression that all changes made will running in the editor were reverted when you stop the game. This seems true for most things, but I noticed that the shader stays at whatever you change it to regardless of mode.
Answer by Andrew_Kenady · Feb 07, 2014 at 06:31 PM
In general, things that are present in the Project pane independent of the scene hierarchy are persistent when in play mode. This means things like textures, materials, assets, etc. will keep your changes. The objects that reset are those visible in the Heirarchy pane.
I've come across this a lot, as I'm sure others have, accidentally making changes in the game while the scene is running... haha. As such, this is a quick way to keep changes when you've made that mistake:
If you drag objects from the scene into the Project pane and create a prefab, you can stop Play mode and drag them back into the scene as they were before!
Hope this helps :)