Files
Basalt/docs/objects/Object/setSize.md
Robert Jelic 18601d54f7 Some updates
2022-08-28 20:25:42 +02:00

438 B

setSize

Changes the object size

Parameters:

  1. number|string width as number or dynamicvalue as string
  2. number|string height as number or dynamicvalue as string

Returns:

  1. object The object in use

Usage:

  • Sets the frame to have a width of 15 and a height of 12
local mainFrame = basalt.createFrame()
local subFrame = mainFrame:addFrame():setSize(15,12)
<frame width="15" height="12" />