Add Archetype TypeInfo::type_name accessor#980
Add Archetype TypeInfo::type_name accessor#980cart merged 1 commit intobevyengine:masterfrom smokku:type_name
Conversation
|
This feels like a compiler bug. Debug vs release builds shouldn't handle this case differently. I also have no clue how to resolve this / disambiguate 😄 |
|
Same here. Works in I see two solutions. Rename the getter to |
|
I'm just so confused. We use this pattern everywhere. |
|
With a bit of help from rust-lang Discord I present you #985 Can you spot the difference? 😜 |
|
Haha it took me a second. You left the |
|
No, I removed the cfg this time. It caused the field to be missing in release builds. |
|
Lol apparently i had my tabs mixed up. Glad to hear the world still makes sense. |

This adds an accessor to get the type name from Archetype.
I use this in ECS debugger when the Reflect is not available, to at least show the name of the Component type.