After a scene change when object is instantiated on start (not an networked object just a regular monobehavior), It is moved to "MovedObjectsHolder" and it stays there forever. Even if you change the scene again.
Changing Scene:
public void LoadScene(string sceneName)
{
if (!InstanceFinder.IsServerStarted)
{
return;
}
SceneLoadData sceneLoadData = new SceneLoadData(sceneName);
sceneLoadData.ReplaceScenes = ReplaceOption.All;
InstanceFinder.SceneManager.LoadGlobalScenes(sceneLoadData);
}
Replicating the issue:
After a scene change:
private void Start()
{
monoBehaviourGameObject = Instantiate(monoBehaviourGameObjectPrefab);
}
if you Instantiate with a transform specified however, it will be not moved into MovedObjectsHolder.
private void Start()
{
monoBehaviourGameObject = Instantiate(monoBehaviourGameObjectPrefab, transform);
}
Fishnet:4.6.18R
Unity Ver: 2022.3.62f2
After a scene change when object is instantiated on start (not an networked object just a regular monobehavior), It is moved to "MovedObjectsHolder" and it stays there forever. Even if you change the scene again.
Changing Scene:
Replicating the issue:
After a scene change:
if you Instantiate with a transform specified however, it will be not moved into MovedObjectsHolder.
Fishnet:4.6.18R
Unity Ver: 2022.3.62f2