#How do i configure bevy-inspector-egui to render HashMaps?

18 messages · Page 1 of 1 (latest)

umbral moat
#

How do i configure bevy-inspector-egui to render HashMaps and HashSets ?

I derive reflect on HashMaps and HashSets like I do for all other types but they WILL NEVER render no matter what i try and what i do . what gives ?

this makes it insanely harder to debug

young arch
umbral moat
#

yes i register the types and it errors in the inspector..

#

im talking about compound hashmaps

#

never ever ever works

cursive pasture
#

What do you mean compound hashmap

#

Hashmaps in my components/resources reflect and show up fine 👀

umbral moat
#

look this is the crap i get

#

im TELLING you guys this is a massive recurring issue for me

#

#[derive(Component, Default, Serialize, Deserialize, Debug, Clone,Reflect)]
#[reflect(Component)]
pub struct ConditionLayersComp (HashSet<ConditionLayer>) ;

#

and ConditionLayer is just a regular old enum that impl Reflect so what the hell

coarse jungle
# umbral moat

Are the keys and values of the map Reflect? Did you register them?

umbral moat
#

Yes

#

Condition layers are reflect and registered

#

Ooo wait i didnt register conditionlayer let me try 🤔

umbral moat
#

Ok i get the same error even still

coarse jungle
#

Oh I didn't notice it's a set, I saw Hash and assumed it was a map