Label for ui_focus_system (#1926)
Needed a label because of a conflict with some custom ui systems
This commit is contained in:
parent
97b26d7647
commit
2bc126e2ce
@ -38,6 +38,7 @@ pub struct UiPlugin;
|
|||||||
pub enum UiSystem {
|
pub enum UiSystem {
|
||||||
/// After this label, the ui flex state has been updated
|
/// After this label, the ui flex state has been updated
|
||||||
Flex,
|
Flex,
|
||||||
|
Focus,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Plugin for UiPlugin {
|
impl Plugin for UiPlugin {
|
||||||
@ -60,7 +61,10 @@ impl Plugin for UiPlugin {
|
|||||||
.register_type::<Val>()
|
.register_type::<Val>()
|
||||||
.add_system_to_stage(
|
.add_system_to_stage(
|
||||||
CoreStage::PreUpdate,
|
CoreStage::PreUpdate,
|
||||||
ui_focus_system.system().after(InputSystem),
|
ui_focus_system
|
||||||
|
.system()
|
||||||
|
.label(UiSystem::Focus)
|
||||||
|
.after(InputSystem),
|
||||||
)
|
)
|
||||||
// add these stages to front because these must run before transform update systems
|
// add these stages to front because these must run before transform update systems
|
||||||
.add_system_to_stage(
|
.add_system_to_stage(
|
||||||
|
Loading…
Reference in New Issue
Block a user