Forum rules - please read before posting.

Disable inventory in certain scenes to save memory

Hi
During development we noticed that inventory is being loaded in every scene, even scenes like MainMenu where you cant see it. So maybe there is a way we can disable the inventory in certain scenes, for memory optimization? Like menus, or cutscenes(separate scene where we only have video playing).Maybe some kind of manager can adjust this?

Comments

  • The inventory is loaded into the RuntimeInventory component, which is present on the PersistentEngine object and spawned at runtime.  It's not part of the scene file, and is instead persistent across all scenes - so it shouldn't really be reloading every scene, just not losing that data.

    If a scene has no GameEngine, then the PersistentEngine will "shut down" until you re-enter an AC scene (ie. one with a GameEngine in it).  However, the components within it must still be present in order to continue tracking your game stats (what you're carrying, variable states etc).
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.