From 3cfcebcf74da626846d1d611c98672c57f63aa9c Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:30:44 -0500 Subject: [PATCH] Register `AssetPath` as type for reflection (#11483) # Objective - `AssetPath` implements reflection, but is not registered as a type in the plugin. - Fixes #11481. ## Solution - Register the `AssetPath` type when `AssetPlugin::build` is called. --- ## Changelog - Registered `AssetPath` type for use in reflection. --- crates/bevy_asset/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_asset/src/lib.rs b/crates/bevy_asset/src/lib.rs index aadccccf54..6d86737485 100644 --- a/crates/bevy_asset/src/lib.rs +++ b/crates/bevy_asset/src/lib.rs @@ -218,7 +218,8 @@ impl Plugin for AssetPlugin { UpdateAssets, TrackAssets.after(handle_internal_asset_events), ) - .add_systems(UpdateAssets, handle_internal_asset_events); + .add_systems(UpdateAssets, handle_internal_asset_events) + .register_type::(); let mut order = app.world.resource_mut::(); order.insert_after(First, UpdateAssets);