Forum rules - please read before posting.

Is there a way to remove a gameobject from the save file?

Hi all,
Simple question really, is there a way to make sure a certain object's presence isn't saved when saving the game? For example if Apple1 GameObject is present in the scene when saving, then making sure it doesn't get loaded when the save is loaded? If that makes sense. So excluding it from the save.

Thank you :)

Comments

  • Or perhaps at least restore the scene to what it was at the beginning when you load it again?

  • AC only ever saves a game object if one of its various "Remember" components have been added to it. To stop tracking its state, it's as simple as removing the component from the object if there is one.

  • edited October 2022

    Are you adding the Apple1 to the scene at runtime, or is it part of the scene file?

    The Remember Transform component's Save scene presence? will cause an object's presence in the scene to be saved. To force-remove an object regardless of the save-data, use the Object: Add or remove Action in the scene's OnLoad cutscene to remove the object after a save is loaded in that scene.

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.