Misc rename
This commit is contained in:
parent
da22fe5acf
commit
1372c44b2a
|
@ -68,7 +68,7 @@ pub fn use_world<'a>(cx: &'a ScopeState) -> &'a World {
|
|||
.world_read_only
|
||||
}
|
||||
|
||||
pub fn use_res<'a, T: Resource>(cx: &'a ScopeState) -> &'a T {
|
||||
pub fn use_resource<'a, T: Resource>(cx: &'a ScopeState) -> &'a T {
|
||||
cx.consume_context::<EcsContext>()
|
||||
.expect("Must be used from a dioxus component within a DioxusUiRoot bevy component")
|
||||
.world_read_only
|
||||
|
|
|
@ -6,7 +6,7 @@ use bevy::{
|
|||
ecs::component::Component,
|
||||
};
|
||||
|
||||
pub use self::implementation::{use_commands, use_res, use_world};
|
||||
pub use self::implementation::{use_commands, use_resource, use_world};
|
||||
pub use dioxus_core::{Element, Scope};
|
||||
|
||||
pub struct DioxusUiPlugin;
|
||||
|
|
Loading…
Reference in a new issue