Not Saving a child?
Posted: Thu Feb 22, 2024 6:09 pm
OK...
For the zombie, I Right clicked and made ES3Prefab from asset window (not hierarchy).
I have a zombie set up as an empty parent, under this parent I have 2 children.
1 called AI and the other TargetTrigger.
On Load the zombie was no where in the scene, the parent was there and the 1 child targettrigger but not the AI (which is the mesh and all the scripts).
As a test, I set my load to be 20secs after scene load, so once the new scene loaded but before the save loaded I paused.
In the hierarchy the AI was there and in working order. I then unpaused with the zombie selected. On the load game it deleted the AI child...
However I have a ES3GameObject script on it. Transform and some scripts checked to save like the other one I just copied)
This is set up the same as the other zombie in the scene which does work. Which is weird (they are totally different meshes and prefabs).
1 works as expected the other gets the child deleted.
No idea how I would even try to duplicate this in a new project, hopefully you have something I can look at or try to fix this.
For the zombie, I Right clicked and made ES3Prefab from asset window (not hierarchy).
I have a zombie set up as an empty parent, under this parent I have 2 children.
1 called AI and the other TargetTrigger.
On Load the zombie was no where in the scene, the parent was there and the 1 child targettrigger but not the AI (which is the mesh and all the scripts).
As a test, I set my load to be 20secs after scene load, so once the new scene loaded but before the save loaded I paused.
In the hierarchy the AI was there and in working order. I then unpaused with the zombie selected. On the load game it deleted the AI child...
However I have a ES3GameObject script on it. Transform and some scripts checked to save like the other one I just copied)
This is set up the same as the other zombie in the scene which does work. Which is weird (they are totally different meshes and prefabs).
1 works as expected the other gets the child deleted.
No idea how I would even try to duplicate this in a new project, hopefully you have something I can look at or try to fix this.