Label for ui_focus_system (#1926)

Needed a label because of a conflict with some custom ui systems
This commit is contained in:
James Higgins 2021-04-19 19:15:27 +00:00
parent 97b26d7647
commit 2bc126e2ce

View File

@ -38,6 +38,7 @@ pub struct UiPlugin;
pub enum UiSystem {
/// After this label, the ui flex state has been updated
Flex,
Focus,
}
impl Plugin for UiPlugin {
@ -60,7 +61,10 @@ impl Plugin for UiPlugin {
.register_type::<Val>()
.add_system_to_stage(
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_system_to_stage(