SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

bevy_reflect: Capture generic type info on opaque types (#24382)

# Objective

Resolves #24235

## Solution

This PR makes it so that opaque types (i.e. those marked with
`#[reflect(opaque)]` or implemented with `impl_reflect_opaque!`), such
as `Arc<T>`, capture generic type information when possible.

Upon reviewing the code, I don't believe this was an intentional
limitation. And instead, it was probably just forgotten about.

## Testing

I added new unit tests to ensure this works properly.
G
Gino Valente committed
5cf5554e082c9f1fa59b3c81fa940d76c9ca2538
Parent: f2eec27
Committed by GitHub <noreply@github.com> on 5/22/2026, 8:18:15 AM