UIManager provides onGUI event

This commit is contained in:
in0finite 2019-08-30 17:38:12 +02:00
parent 2eabea6626
commit 76340b481b

View file

@ -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()