Skip to main content

Custom Foliage Manager

The Foliage Manager keeps track of hidden and removed instances, respawns them, replicates them and saves them. It is spawned automatically on the server. You can replace it with your own subclass to customize saving.

Step 1: Create the class​

Create a Blueprint class with FoliagePluginManager as the parent class, and set it as Foliage Manager Class in Project Settings → Game → Foliage Plugin.

Set the Foliage Manager Class

Step 2: Override the functions you need​

FunctionUse it to
Get Save Game NameReturn the save slot name to use, for example one per map or per save file. Overrides Save Game Name in the Project Settings.
Save Foliage Data to DiskReplace how the data is saved. Return true on success.

Override Get Save Game Name

Return the name you want to use:

Custom save game name

See Saving and Loading for how saving works.