Hi everyone. I have an item that my character picks up and puts in his inventory. Whenever I leave the scene and return, the item is back where it was before I picked it up (although it is still in my inventory). What is the best way to fix this? Do I need to use a variable or is there a simpler solution?
Comments
In order to save the state of an object in the scene, you need to tell AC what type of data about it you wish to save. This is done by attaching the appropriate "Remember" component to it.
For example, to save the visiblility of a sprite, you can attach "Remember Visibility". To save an object's position (or "Transform"), you can attach "Remember Transform".
See the Manual's "Saving scene objects" chapter for full details.
The "Remember Nav Mesh 2D" component, which should be attached to the main NavMesh object.