Each time it's clicked this line of message shows:
TotalHeight: 1185, Screen height:1440, ScreenHeight:1440
We could calculate the actual value, assuming we know these two properties:
The hardcoded size is Vec2(75f,75f), and in 1.25x UI Scale it's 75 x 1.25 = 93.75;
With only one column, the total height is (93.75 + 5) x 12 = 1185;
I'm using 2560x1440 so Screen.height x 0.9 = 1440 x 0.9 = 1296, which explains the log message.
But the problem is, from the screenshot its total height is obvious larger than the screen. Where could go wrong?
Simple Storage Pallet has 12 subcategories:
And will show a long list of menu like the pic below (Obviously its height is larger than screen reso):![image](https://github.com/masakitenchi/Hardcore-SK/assets/11086210/3a63df9b-2491-4ee0-9323-b10b6563256a)
If add a line of debug message in its .ctor:
Each time it's clicked this line of message shows:
TotalHeight: 1185, Screen height:1440, ScreenHeight:1440
We could calculate the actual value, assuming we know these two properties:The hardcoded size is Vec2(75f,75f), and in 1.25x UI Scale it's 75 x 1.25 = 93.75; With only one column, the total height is (93.75 + 5) x 12 = 1185; I'm using 2560x1440 so Screen.height x 0.9 = 1440 x 0.9 = 1296, which explains the log message.
But the problem is, from the screenshot its total height is obvious larger than the screen. Where could go wrong?