Starting Scene with SaveSystem.LoadScene() disables default UIS Loadout.
Posted: Sat May 14, 2022 4:43 pm
Sorry for the long title, this is an interesting one so I'll try to explain the best I can.
I have a menu scene that I use to load the main game scene where the player character is already instantiated.
The player character is a UCC/UIS character with a Default Loadout of just the Body (Melee). This default Body doesn't take an equipment slot.
Here is where it gets interesting. If I have the Save System components in the main game scene, and use SceneManager.LoadScene() from my menu scene to load the game, everything works fine. Saving and loading works, etc. The player character Body is available and able to be used. It does not take a slot, so it's always available.
If I have the Save System components in the menu scene and use SaveSystem.LoadScene(), then the player character Body is not available, and cannot be used. I can see where it initially loads the scene, the Body equipment indicator is there, after the scene fully loads, it's gone. Almost like it's disabling it somehow.
Any ideas?
edit:
I have a saved game from when I had it configured with the Save System components in the game scene. If I load that game with it configured with the Save System components in the menu scene, the body works.
I know it's confusing, and I know I'm not explaining it well so please if you have any questions. Ask away. I will not be able to send a repro project for this one.
I have a menu scene that I use to load the main game scene where the player character is already instantiated.
The player character is a UCC/UIS character with a Default Loadout of just the Body (Melee). This default Body doesn't take an equipment slot.
Here is where it gets interesting. If I have the Save System components in the main game scene, and use SceneManager.LoadScene() from my menu scene to load the game, everything works fine. Saving and loading works, etc. The player character Body is available and able to be used. It does not take a slot, so it's always available.
If I have the Save System components in the menu scene and use SaveSystem.LoadScene(), then the player character Body is not available, and cannot be used. I can see where it initially loads the scene, the Body equipment indicator is there, after the scene fully loads, it's gone. Almost like it's disabling it somehow.
Any ideas?
edit:
I have a saved game from when I had it configured with the Save System components in the game scene. If I load that game with it configured with the Save System components in the menu scene, the body works.
I know it's confusing, and I know I'm not explaining it well so please if you have any questions. Ask away. I will not be able to send a repro project for this one.