How to use window api? (solved)

window api, API reference (window) , it seems like only return width.
how to get height with this api?

-sorry about my poor english.

image
image

in my opinion, it should return table not number

window.get_size() returns two numbers for the width and height:

local width, height = window.get_size()
print(width, height)
2 Likes

wow… its very elemental syntax mistake…

i am familiar python but lua, i didnt recognize that mistake.

super thanks!

1 Like