mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
Add register_type
for UiMaterialHandle
and AnimationGraphHandle
(#15784)
This commit is contained in:
parent
05b0f28ebf
commit
57c297becc
2 changed files with 7 additions and 4 deletions
|
@ -1255,6 +1255,7 @@ impl Plugin for AnimationPlugin {
|
|||
.register_type::<AnimationPlayer>()
|
||||
.register_type::<AnimationTarget>()
|
||||
.register_type::<AnimationTransitions>()
|
||||
.register_type::<AnimationGraphHandle>()
|
||||
.register_type::<NodeIndex>()
|
||||
.register_type::<ThreadedAnimationGraphs>()
|
||||
.init_resource::<ThreadedAnimationGraphs>()
|
||||
|
|
|
@ -59,10 +59,12 @@ where
|
|||
"ui_material.wgsl",
|
||||
Shader::from_wgsl
|
||||
);
|
||||
app.init_asset::<M>().add_plugins((
|
||||
ExtractComponentPlugin::<UiMaterialHandle<M>>::extract_visible(),
|
||||
RenderAssetPlugin::<PreparedUiMaterial<M>>::default(),
|
||||
));
|
||||
app.init_asset::<M>()
|
||||
.register_type::<UiMaterialHandle<M>>()
|
||||
.add_plugins((
|
||||
ExtractComponentPlugin::<UiMaterialHandle<M>>::extract_visible(),
|
||||
RenderAssetPlugin::<PreparedUiMaterial<M>>::default(),
|
||||
));
|
||||
|
||||
if let Some(render_app) = app.get_sub_app_mut(RenderApp) {
|
||||
render_app
|
||||
|
|
Loading…
Reference in a new issue