Best way to pull list of components and corresponding values off of an entity? #126
Unanswered
DanielMitchellDev
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Look into https://github.com/Doraku/DefaultEcs/blob/master/documentation/api/Entity_ReadAllComponents(IComponentReader).md The debug view for entity also do the same thing so you can see an entity components in the debuger if you want to see some code example https://github.com/Doraku/DefaultEcs/blob/master/source/DefaultEcs/Technical/Debug/EntityDebugView.cs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
Been stuck on this one for a minute. Is there a way to get a list of ALL components and the values stored in those components off of an entity (for example, in some sort of Dictionary form) so that I can convert them into a json project I'm working on?
so far for each entity all I can find is the .get() method which requires you know what components are on the entity and you're only able to get 1 component at a time.
Beta Was this translation helpful? Give feedback.
All reactions