Struct InitManagedStateSystem Extends ISystem
Public
Initializes managed state for baked agents.
A baked entity cannot carry a storage slot in AgentManagedStorage, because baking happens ahead of time and its output is serialized while the storage only exists at runtime. So a baked FollowerEntity arrives with an AgentBakedSettings component and no AgentManagedRef.
Agents created from a FollowerEntity MonoBehaviour do not go through here. FollowerEntity.CreateEntity allocates their slot directly.
Public Methods
Public Static Methods
BuildSettings
(state, entity)
Reconstructs the settings that were flattened into unmanaged components during baking.