Skip to content

Interface IInitSystem ​

Namespace: KenseiECS

Initialized by SystemsRunner.Init(), in registration order.

csharp
public interface IInitSystem : ISystem

Implements ​

ISystem

Methods ​

Init(World, SharedData) ​

Called once by SystemsRunner.Init(), before the first Run; acquire pools, filters and shared data here. It runs again when the runner is initialized again: after SystemsRunner.Destroy(), or after an Init that failed in a later system, whose rollback destroys this system first if it implements IDestroySystem (the retry starts from the first system).

csharp
void Init(World world, SharedData shared)

Parameters ​

world World

shared SharedData