diff --git a/Assets/Scripts/Behaviours/UIManager.cs b/Assets/Scripts/Behaviours/UIManager.cs index badae0da..cda10818 100644 --- a/Assets/Scripts/Behaviours/UIManager.cs +++ b/Assets/Scripts/Behaviours/UIManager.cs @@ -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()