Hello everyone!
For example, when I’m working on the UI canvas of, let’s say, Scene 1, is there a way to apply the changes I made there to the UI canvas of Scene 2?
When I make a prefab of the canvas and import it to Scene 2, I will have to delete and replace the older version each time and I will lose the referenced data in the scripts, which is tedious to set up over and over again.
Many thanks in advance,
Greetings,
Shu
Make it a prefab, when you’re done editing in scene 1, select the prefab in the scene and hit “apply” at the top of the inspector, then select the prefab in scene 2 and hit “revert” (though really, it should update without you having to do that).
If you update a value in a prefab, then edit that prefab elsewhere, the new prefab data will not overwrite the value you’ve updated.
Thank you very much for your answer, Gambit MSplitz!
While this does work better than my approach, I am still unable to keep most of the references attached to the script.
After some testing, it seems that only references included in the prefab will be transferred to the other scene (e.g. another child object in the prefab’s hierarchy).
While it seems to make sense to me that the references get lost when you put some objects there that are not linked to the other scene, I don’t understand why references to other prefabs that are included in both scenes get lost, too.
After updating the UI in one of the scenes, especially when having like 200 references, it’s an insane effort to get the whole thing into all the other scenes.
And even then, this may not be the last version of the UI you want to have in all of the scenes. So you would have to do this over and over again.