Skip to content

Bibyter/leoecs-unityintegraion

Repository files navigation

leoecs-unityintegraion with EditorWindow

alt text

Installation

with package manager

"com.bibyter.leoecs.integration": "https://github.com/Bibyter/leoecs-unityintegraion.git",

How open window?

Window/Leoecs Editor

How to connect The EcsWorld?

void Start () {        
    _world = new EcsWorld ();
    _systems = new EcsSystems (_world);
#if UNITY_EDITOR
    Bibyter.LeoecsEditor.EcsEditorRouter.Create(_world);
#endif
    _systems
        .Add (new TestSystem1 ())
        .Init ();
}

What can it do?

  • view entities list
  • List<> in component draw support
  • filtering entity by component type name
  • open multiple worlds
  • nested struct draw support with attribute
    [FullDrawInEcsWindow]
    struct NestedStruct
    {
        public int intVal;
        public int floatVal;
    }
  • select entity with view object
    public class CharacterView : MonoBehaviour
    {
        public EcsEntity entity;

        [ContextMenu("ShowEntityInEditor")]
        void ShowEntityInEditor()
        {
            EcsEditorRouter.SelectEntity(entity);
        }
    }
  • select entity with component field

alt text

About

No description, website, or topics provided.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages