Add register_type for UiMaterialHandle and AnimationGraphHandle (#15784)
				
					
				
			This commit is contained in:
		
							parent
							
								
									05b0f28ebf
								
							
						
					
					
						commit
						57c297becc
					
				| @ -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,7 +59,9 @@ where | ||||
|             "ui_material.wgsl", | ||||
|             Shader::from_wgsl | ||||
|         ); | ||||
|         app.init_asset::<M>().add_plugins(( | ||||
|         app.init_asset::<M>() | ||||
|             .register_type::<UiMaterialHandle<M>>() | ||||
|             .add_plugins(( | ||||
|                 ExtractComponentPlugin::<UiMaterialHandle<M>>::extract_visible(), | ||||
|                 RenderAssetPlugin::<PreparedUiMaterial<M>>::default(), | ||||
|             )); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Tim
						Tim