Post by Admin on Jul 16, 2016 4:19:35 GMT
LP @grofit Sep 30 2015 20:03
hey just got a few really simple questions
So I understand the ECS paradigm and I have made a simple component, done the generate and can see the extension methods
so before I get to making a system I should be able to create entities in the scene with this component right?
However I cannot find much info on this aspect of creating entities, I was hoping for a simple hello world style thing where I could just have a simple single component and a system would output a message every second or something
so just trying to get some info on the simplest bare bones entity + component -> scene
now in my monobehaviour I have added:
void Start () {
var pool = new Pool(ComponentIds.TotalComponents);
var e = pool.CreateEntity();
e.AddPosition(1f, 2f, 3f);
}
based upon the simple Position component in the docs however I never see an entity added to the scene, so what else is required at a minimum to get the entity into an empty game object in the scene?
LP @grofit Sep 30 2015 21:43
ok from a primitive look through some of the examples it seems by default an entity is not a 1-1 with a gameobject which I thought it would be, so I guess I NEED a system to take all my entities which should have game objects and create them
LP @grofit Sep 30 2015 22:10
also I assume the docs are wrong where it says use IStartSystem and its now IInitializeSystem
hey just got a few really simple questions
So I understand the ECS paradigm and I have made a simple component, done the generate and can see the extension methods
so before I get to making a system I should be able to create entities in the scene with this component right?
However I cannot find much info on this aspect of creating entities, I was hoping for a simple hello world style thing where I could just have a simple single component and a system would output a message every second or something
so just trying to get some info on the simplest bare bones entity + component -> scene
now in my monobehaviour I have added:
void Start () {
var pool = new Pool(ComponentIds.TotalComponents);
var e = pool.CreateEntity();
e.AddPosition(1f, 2f, 3f);
}
based upon the simple Position component in the docs however I never see an entity added to the scene, so what else is required at a minimum to get the entity into an empty game object in the scene?
LP @grofit Sep 30 2015 21:43
ok from a primitive look through some of the examples it seems by default an entity is not a 1-1 with a gameobject which I thought it would be, so I guess I NEED a system to take all my entities which should have game objects and create them
LP @grofit Sep 30 2015 22:10
also I assume the docs are wrong where it says use IStartSystem and its now IInitializeSystem