Update prefabs at runtime for next scene

Sorry if there’s duplicated posts about this question.

My game is pretty close to the Character Customization example, which has two scenes. A setup scenes to let the users create their own character and save it as a prefab, and in next scene we spawn this prefab to make a lot of characters. How can I update my character in the first setup scene and make the next game scene affect to the update?

I seems to call EditorUtility.ReplacePrefab method can be an solution but since I am new to Unity I don’t know how exactly to work it out.

you can not create any prefab at runtime. prefab are a creation - editor time only thing.

No idea what you are doing currently but what you likely do is create a template object which you will instantiate in the new scene.
All thats needed for that is DontDestroyOnLoad on the object and all stuff (aside of procedural texture / mesh data) will just remain existant in the next scene

DontDestroyOnLoad works well on my situation. Thanks dreamora :smile:

glad it helped :slight_smile: