Skip to content
/ ecslite Public
forked from Leopotam/ecslite

简易ecs框架,基于ecslite扩展。单例组件、数据蓝图、层级系统、UnityEditor增强。

Notifications You must be signed in to change notification settings

Sarofc/ecslite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecslite


单例组件

struct YourSingletonComponent : IEcsComponentSingleton
{
    public int someValue;
}

ref var singletonComp = ref world.GetSingleton<YourSingletonComponent>();

transform层级系统

EcsEntity root = CreateNode(world, "root");

EcsEntity child1 = CreateNode(world, "child1");
child1.SetParent(root);

EcsEntity child2 = CreateNode(world, "child2");
child2.SetParent(root);

EcsEntity child3 = CreateNode(world, "child3");
child3.SetParent(root);
child3.SetLocalPosition(new Vector3(-6, 0, 0));

EcsEntity child4 = CreateNode(world, "child4");
child4.SetParent(child3);

UnityEditor增强

About

简易ecs框架,基于ecslite扩展。单例组件、数据蓝图、层级系统、UnityEditor增强。

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%