I have my character set up as a prefab, and right now, I am re-instantiating it every time you die (because I’m changing a lot of things inside the character upon death). But this is leading to a lot of problems with lost connections that I have to repair by re-finding the character object in scripts that need to access it. This could all be made much simpler by a function like RevertPrefabInstance, but that works in-game, rather than just in the editor. Does this exist?
You could always enable or disable the gameobject rather than destroying and re-instantiating the object, it’s what I do in my projects.
i.e once an object is instantiated instead of destroy you can use:
Gameobject.SetActive = false;
then respawning is true
I think this link will be useful: