Hello. I’m trying make my own plugin. For now, I stuck with widget size - I can’t get it:
local widgetSize = Widget.AbsoluteSize -- = Vector2.new(0, 0)
)
Can someone say me, how I can get this property from widgetInfo?
Hello. I’m trying make my own plugin. For now, I stuck with widget size - I can’t get it:
local widgetSize = Widget.AbsoluteSize -- = Vector2.new(0, 0)
)
Can someone say me, how I can get this property from widgetInfo?
Do this
local info = DockWidgetPluginGuiInfo.new( -- Create your widget info
Enum.InitialDockState.Float, -- Dock State
false, -- toggle enabled
true, -- sets wheater it overrides the previous window or not
200, -- width
44, -- height
200, -- min width
44 -- min height
)
local widget1 = plugin:CreateDockWidgetPluginGui("Your Plugin", info)
And how I can get AbsoluteSize of widget1? When I try get it, I always see Vector2.new(0,0)