bevyengine / bevyengine/bevy

Tuples don't get `ReflectFromReflect` type data registered in `GetTypeRegistration`

Open
#17,981 2 comments 0 reactions 0 assignees View on GitHub
A-Reflection C-Usability D-Complex S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.15.1

## Summary

i.e.
```rust
registry.register_type::<(usize,usize)>();
```

will not register a `ReflectFromReflect` type data against the tuple.

for it to take, you have to manually do it via:
```rust
registry.register_type_data::
```

This means if I want to construct arbitrary types like:
```rust
stuct MyStruct {
pub foo: (usize,usize)
}
```

I have to always do that manual registration

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.