Impossible to retrieve my new Component...

3 views
Skip to first unread message

Joel Vedrenne (Ensam)

unread,
Jul 4, 2012, 11:11:23 AM7/4/12
to dtenti...@googlegroups.com
Hi all,

I just came to create a new Component. All seems to be ok: I see it into the editor, I can create it on my Entity, change its properties etc... No problem.

My problem is that if I try to parse my Entity components with this code line:

myEntity->GetComponents(allComponents);

I cannot see this new Component into the allComponents vector.

Have you any idea about that ?

Thanks a lot.
Joël.


Martin Scheffler

unread,
Jul 4, 2012, 12:13:17 PM7/4/12
to dtenti...@googlegroups.com

Have you added your entity system to the entity manager? Its weird that it shows in the editor but not in getAllComponents

Reply all
Reply to author
Forward
0 new messages