Skip to content

Commit c55c69e

Browse files
tmstoreyTM Storey
and
TM Storey
authored
Add NonNilUuid support to bevy_reflect (#18604)
# Objective - If using a `NonNilUuid` in Bevy, it's difficult to reflect it. ## Solution - Adds `NonNilUuid` using `impl_reflect_opaque!`. ## Testing - Built with no issues found locally. - Essentially the same as the `Uuid` support except without `Default`. Co-authored-by: TM Storey <[email protected]>
1 parent 5e2ecf4 commit c55c69e

File tree

1 file changed

+9
-0
lines changed
  • crates/bevy_reflect/src/impls

1 file changed

+9
-0
lines changed

crates/bevy_reflect/src/impls/uuid.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ impl_reflect_opaque!(::uuid::Uuid(
1010
PartialEq,
1111
Hash
1212
));
13+
14+
impl_reflect_opaque!(::uuid::NonNilUuid(
15+
Serialize,
16+
Deserialize,
17+
Clone,
18+
Debug,
19+
PartialEq,
20+
Hash
21+
));

0 commit comments

Comments
 (0)