Persistence
The fields of classes that extend ScriptableSystem
or PersistentState
(e.g. ScriptedPuppetPS
) can be declared with the persistent modifier to be persisted in game saves.
You can persist data of all types except for String
, Variant
and ResRef
(and arrays of these types).
Instances of classes can be persisted too, but note that their fields must also be marked as persistent, or they won't be persisted and instead they'll be initialized with defaults.
Last updated