bevy/examples/ui
Tim 9aef71bd9b
Replace Handle<M: UiMaterial> component with UiMaterialHandle wrapper (#15740)
# Objective

- Closes #15720

## Solution

Wrap the handle in a new wrapper component: `UiMaterialHandle`
It's not possible to match the naming convention of `MeshMaterial3d/2d`
here with the trait already being called `UiMaterial`

Should we consider renaming to `Material3d/2dHandle` and `Mesh3d/2d` to
`Mesh3d/2dHandle`?

- This shouldn't have any merge conflicts with #15591

## Testing

Tested the `ui_material` example

## Migration Guide

Let's defer the migration guide to the required component port. I just
want to yeet the `Component` impl on `Handle` in the meantime :)
2024-10-08 19:07:58 +00:00
..
borders.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
box_shadow.rs box shadow (#15204) 2024-10-08 16:26:17 +00:00
button.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
display_and_visibility.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
flex_layout.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
font_atlas_debug.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ghost_nodes.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
grid.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
overflow.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
overflow_debug.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
relative_cursor_position.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
render_ui_to_texture.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
scroll.rs Rename the Pickable component and fix incorrect documentation (#15707) 2024-10-07 17:09:57 +00:00
size_constraints.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
text.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
text_debug.rs Display the bounds of each text node in the text_debug ui example (#15622) 2024-10-05 22:48:57 +00:00
text_wrap_debug.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
transparency_ui.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ui.rs Rename the Pickable component and fix incorrect documentation (#15707) 2024-10-07 17:09:57 +00:00
ui_material.rs Replace Handle<M: UiMaterial> component with UiMaterialHandle wrapper (#15740) 2024-10-08 19:07:58 +00:00
ui_scaling.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ui_texture_atlas.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ui_texture_atlas_slice.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ui_texture_slice.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
ui_texture_slice_flip_and_tile.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
viewport_debug.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
window_fallthrough.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
z_index.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00