Forum rules - please read before posting.

Menus under _UI not instantiated when game save loaded

For a game we store the save data on a server, which is exactly the content of a .savx file.
When restoring the game from save data, no menu's are instantiated.

We use KickStarter.sceneChange.ChangeScene to load the actual scene, followed by a KickStarter.saveSystem.LoadGame, which is an adaptation of the load from file (seperated file content reading and loading, so we can both load from file and from string in memory).

No gameObjects are found under _UI after loading the game. How come?

Comments

  • edited June 2015
    It's not clear if this is due to your own code or not.  Does it work when you load a game normally through AC's Load menu?

    Why is it that you're switching scene before loading the game?  The LoadGame function will automatically switch scene for you if it needs to - it's at that point that the UIs are loaded correctly.  See the PlayerMenus script's OnLevelWasLoaded function.
  • It works if we use the LoadGame without the ChangeScene before calling the LoadGame.
  • edited June 2015
    Just so you're aware, v1.46 has a new "Save: Save or Load" Action, which is the recommended way to load a saved game within AC now.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.