bevy_reflect: Register Hash
for glam types
#6736
Labels
A-Reflection
Runtime information about types
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
The integer vector types (e.g.
IVec2
,Uvec3
, etc.) should registerHash
with#[reflect(Hash)]
so that they can be used withDynamicMap
and serialization.For example, here is
UVec3
's impl definition, and it does not includeHash
in the list of traits to register:bevy/crates/bevy_reflect/src/impls/glam.rs
Lines 40 to 47 in 3827316
The fix: Register
Hash
on all of glam's reflected integer vector types.The text was updated successfully, but these errors were encountered: