Closed PudgeKim closed 10 months ago
You can't iterate all components with their types, rust can't do that (or in a very arcane way).
Currently you can get basic debug information about storages, like component name, how many components they have. But there is no function to do what you want.
I can add a function that iterates over all storages, then you could check if the entity is present in the storage and print the component name or match with your components' TypeId
.
Would that be enough?
yeah I'd be glad if it's component name~!
I need to get all components of the entity to debug..! If some entity has two components.
I need some api which returns "Coordinate", "Bag". Is there any function like this in shipyard? I can do it using
AllStoragesView.borrow<View<Coordinate>>
but I should type all of the component.