![]() # Objective - We have the ability to serialize/deserialize `Handle<T>` with [`TypedReflectSerializer`](https://docs.rs/bevy/latest/bevy/reflect/serde/struct.TypedReflectSerializer.html) and [`TypedReflectDeserializer`](https://docs.rs/bevy/latest/bevy/reflect/serde/struct.TypedReflectDeserializer.html), but it is not possible for `UntypedHandle`. - `Handle<T>` already has the `Reflect` derive, so it sounds coherent to also have this derive also on the untyped API ## Solution - Add the `Reflect` derive macro to both `UntypedHandle` and ` UntypedAssetId`. ## Testing - I used a custom processor to handle the serialization based on the example of [`TypedReflectSerializer`](https://docs.rs/bevy/latest/bevy/reflect/serde/struct.TypedReflectSerializer.html) (see [source code](https://docs.rs/bevy_reflect/0.15.3/src/bevy_reflect/serde/ser/serializer.rs.html#149)) Co-authored-by: Frédéric Vauchelles <frederic.vauchelles@outlook.com> |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |