SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

export `resource_entity` in `EntityWorldMut` and `TemplateContext` (#24292)

# Objective

- Provide a way for accessing resource entities, enabling the use of
#19731 .

## Solution

- Add `resource_entity::<R: Resource>` using `World::resource_entities`.
- Not sure if there is needed for accessing `ResourceEntities`. Just
exported `resource_entities` in `EntityWorldMut` but not in
`TemplateContext`.

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
H
Helix committed
d629b1ab94e3a4c3bd9c5dcf875d3574de27591f
Parent: 0d90ac9
Committed by GitHub <noreply@github.com> on 5/21/2026, 10:00:14 AM