Skip to content

AlexWargon/LeoEcs-Unity-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeoEcs Unity Prefabs

How to use:

  1. Init EcsWorld from Awake method

  2. After instatiating of EcsWorld, call MonoConvertor.Init(link to world)

world = new EcsWorld();
MonoConverter.Init(world);
  1. Add to your component attribute [EcsComponent]
[EcsComponent]
public struct Health 
{ 
    public int value;
}

Must be something like that

image

All components will be added automatically, after scene start or when prefab will be spawned on scene.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages