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 {
|
||||
/// 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(
|
||||
|
Loading…
Reference in New Issue
Block a user