mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-12-03 17:29:11 +00:00
UIManager provides onGUI event
This commit is contained in:
parent
2eabea6626
commit
76340b481b
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,8 @@ namespace SanAndreasUnity.Behaviours
|
|||
[SerializeField] float m_scrollbarSizeMultiplierOnMobile = 2f;
|
||||
[SerializeField] bool m_changeScrollbarSizeInEditor = false;
|
||||
|
||||
public static event System.Action onGUI = delegate {};
|
||||
|
||||
// note: UIManager's OnGUI() should execute before other OnGUI()s, because other scripts may try to create their own
|
||||
// style from existing styles
|
||||
|
||||
|
@ -80,6 +82,8 @@ namespace SanAndreasUnity.Behaviours
|
|||
SetStylesFontSize(m_imguiFontSize);
|
||||
}
|
||||
|
||||
onGUI();
|
||||
|
||||
}
|
||||
|
||||
void SetupGui()
|
||||
|
|
Loading…
Reference in a new issue