Skip to content

Release v2.9.12

Compare
Choose a tag to compare
@michael811125 michael811125 released this 16 Jan 15:47
· 172 commits to master since this release

[2.9.12] - 2024-01-16

  • Added CoreFrames.UIFrame.GetStackByStackCount method.
    public static int GetStackByStackCount(string canvasName)
    
    public static int GetStackByStackCount(int groupId, string canvasName)

How to use it

    if (Keyboard.current.escapeKey.wasReleasedThisFrame)
    {
        if (CoreFrames.UIFrame.GetStackByStackCount(groupId, canvasName) > 0)
        {
            CoreFrames.UIFrame.CloseStackByStack(groupId, canvasName);
        }
        else
        {
            Debug.Log("Open Esc Menu!!!");
        }
    }
  • Modified UI NodeType name (the original settings will not be changed).
    public enum NodeType
    {
        Fixed,        // Normal => Fixed
        TopFixed,     // Fixed => TopFixed
        Popup,        // Same
        TopPopup,     // Same
        LoadingPopup, // Same
        SysPopup,     // Same
        TopSysPopup,  // Same
        AwaitingPopup // Same
    }