Replies: 3 comments 7 replies
-
I think you are supposed to use the Properties for that. |
Beta Was this translation helpful? Give feedback.
-
Iterate over meta data members is quite easy actually: for(auto data: type.data()) {
// ...
} As for the variable names, |
Beta Was this translation helpful? Give feedback.
-
I have tried to use
I suppose this is a side-effect of how For now I have side-stepped the issue by wrapping my strings with a struct, like this:
This is totally workable and fine. I was just wondering if there is a better way to do it. Or if I should just keeping using structs for custom data, since right now a simple string would suffice but this may not always be the case. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm looking at the reflection system test code and documentation. Is there a way to iterate over an object member variable and get all the variable name (as string) ? I did figure out how to do it with values but not with names. Trough the registered hashed_string maybe ?
Beta Was this translation helpful? Give feedback.
All reactions