diff --git a/crates/bevy_ecs/src/core/archetype.rs b/crates/bevy_ecs/src/core/archetype.rs index 7462f6c909745..818bfa76dc1c5 100644 --- a/crates/bevy_ecs/src/core/archetype.rs +++ b/crates/bevy_ecs/src/core/archetype.rs @@ -519,6 +519,12 @@ impl TypeInfo { pub(crate) unsafe fn drop(&self, data: *mut u8) { (self.drop)(data) } + + #[allow(missing_docs)] + #[inline] + pub fn type_name(&self) -> &'static str { + self.type_name + } } impl PartialOrd for TypeInfo {