FANDOM


CraftStudio.Screen.GetSizeEdit

[table] CraftStudio.Screen.GetSize()

Returns the screen / window current size in pixels as a table with x and y as the keys.

Example: Print the window width and height Edit

local windowSize = CraftStudio.Screen.GetSize()
print( "Width: " .. windowSize.x )
print( "Height: " .. windowSize.y )

CraftStudio.Screen.SetSizeEdit

CraftStudio.Screen.SetSize( [number] width, [number] height )

Sets the screen / window size in pixels.

CraftStudio.Screen.SetResizableEdit

CraftStudio.Screen.SetResizable( [boolean] resizable )

Sets whether the window is resizable by the user when the game is running.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.