-
Init EcsWorld from Awake method
-
After instatiating of EcsWorld, call MonoConvertor.Init(link to world)
world = new EcsWorld();
MonoConverter.Init(world);
- Add to your component attribute [EcsComponent]
[EcsComponent]
public struct Health
{
public int value;
}
Must be something like that
All components will be added automatically, after scene start or when prefab will be spawned on scene.