mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 11:33:06 +00:00
8577a448f7
`Sprite`, `Text`, and `Handle<MeshletMesh>` were types of renderable entities that the new segregated visible entity system didn't handle, so they didn't appear. Because `bevy_text` depends on `bevy_sprite`, and the visibility computation of text happens in the latter crate, I had to introduce a new marker component, `SpriteSource`. `SpriteSource` marks entities that aren't themselves sprites but become sprites during rendering. I added this component to `Text2dBundle`. Unfortunately, this is technically a breaking change, although I suspect it won't break anybody in practice except perhaps editors. Fixes #12935. ## Changelog ### Changed * `Text2dBundle` now includes a new marker component, `SpriteSource`. Bevy uses this internally to optimize visibility calculation. ## Migration Guide * `Text` now requires a `SpriteSource` marker component in order to appear. This component has been added to `Text2dBundle`. |
||
---|---|---|
.. | ||
color_material.rs | ||
color_material.wgsl | ||
material.rs | ||
mesh.rs | ||
mesh2d.wgsl | ||
mesh2d_bindings.wgsl | ||
mesh2d_functions.wgsl | ||
mesh2d_types.wgsl | ||
mesh2d_vertex_output.wgsl | ||
mesh2d_view_bindings.wgsl | ||
mesh2d_view_types.wgsl | ||
mod.rs | ||
wireframe2d.rs | ||
wireframe2d.wgsl |