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.
This commit is contained in:
parent
593d41ce58
commit
3cfcebcf74
@ -218,7 +218,8 @@ impl Plugin for AssetPlugin {
|
|||||||
UpdateAssets,
|
UpdateAssets,
|
||||||
TrackAssets.after(handle_internal_asset_events),
|
TrackAssets.after(handle_internal_asset_events),
|
||||||
)
|
)
|
||||||
.add_systems(UpdateAssets, handle_internal_asset_events);
|
.add_systems(UpdateAssets, handle_internal_asset_events)
|
||||||
|
.register_type::<AssetPath>();
|
||||||
|
|
||||||
let mut order = app.world.resource_mut::<MainScheduleOrder>();
|
let mut order = app.world.resource_mut::<MainScheduleOrder>();
|
||||||
order.insert_after(First, UpdateAssets);
|
order.insert_after(First, UpdateAssets);
|
||||||
|
Loading…
Reference in New Issue
Block a user