public static void Save(){
// ORK.SaveGame.Save(ORK.SaveGame.LastIndex);
// ORK.SaveGame.CreateInfos();
ORK.Game.SaveGame();
ORK.SaveGame.AddSaveData();
Maki.SaveGame.Save(Maki.SaveGame.LatestSaveIndex);
Maki.SaveGame.Save(Maki.SaveGame.LastIndex);
Maki.Game.SaveGame();
}
It looks like you're new here. If you want to get involved, click one of these buttons!
Loading a save game will spawn the player at the saved position, unless you disabled Group Positions in the ORK save settings (UI > Save Game Settings).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I'm still having the issue that the player won't spawn.
I use the code to save the game:
public static void Save(){
int index = Maki.SaveGame.LatestSaveIndex;
if(index < 0) index = 0;
Maki.SaveGame.Save(index);
}
#if UNITY_2018_1_OR_NEWER
private void OnEnable()
{
Application.wantsToQuit -= OnWantsToQuit;
Application.wantsToQuit += OnWantsToQuit;
}
private void OnDisable()
{
Application.wantsToQuit -= OnWantsToQuit;
}
private bool OnWantsToQuit()
{
Save();
return true;
}
#else
/// <summary>
/// When quitting, save the game.
/// </summary>
private void OnApplicationQuit()
{
Save();
}
#endif
Both Continue and Load options can jump to the saved scene but can not spawn the player.
The UI > Save Game Settings are set to Save Slots = 3, Auto Save Slots = 1. The Group Position and Player Position are enabled.
It's working perfectly while saving in SceneManager.sceneLoaded.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!