Sometimes we might want to enable or disable map elements depending on player actions in the level. Additionally, we might want to make this changes persistent when the game is saved and loaded.

For that, simply add the component MapElementSavable to a map element (this works with Images and details). This should add a bunch of other needed components.

image.png

Then, if we want to enable or disable this element on the map. Simply call the methods ActivateOnMap or DeactivateOnMap from the MapElementSavable.

This can be perform from any event, for example from a OnPickupEvent

image.png

You can simply disable the object if it needs to be invisible by default and then call ActivateOnMap to reenable.