Hi everyone,
I'm using the following script command to load the previous scene in a custom action:
AC.KickStarter.
sceneChanger.ChangeScene(AC.KickStarter.
sceneChanger.previousSceneInfo, true);
My inventory is a scene, so I change scene each time I need to open my inventory. And when I close the inventory, I return to the previous scene. The problem is that the character start everytime at the playerstart marker. Is there a way to keep the transform position of the character ?
Thanks for any help !
Comments
An alternative solution would be to rely on player-switching, in that you use a separate player prefab just for the inventory, so that instead of swtiching to the previous scene afterwards - you just switch back to the original player.
Player switching can be enabled in the Settings Manager, and then done with the Player: Switch Action. Just create a dummy Player prefab with no graphics for the "inventory" player, and be sure to check All players share same Inventory?.