2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

DockWidgetPluginGuiInfo

The DockWidgetPluginGuiInfo data type describes details for a DockWidgetPluginGui. This data type is used when constructing a PluginGui via the plugin's Plugin:CreateDockWidgetPluginGuiAsync() method.

Constructors

NameType / ReturnsDescription
DockWidgetPluginGuiInfo.newReturns a new DockWidgetPluginGuiInfo object.

DockWidgetPluginGuiInfo.new

The main constructor function for the DockWidgetPluginGuiInfo.

Parameters

NameTypeDefaultDescription
InitialDockStateInitialDockStateEnum.InitialDockState.Right
InitialEnabledboolfalse
InitialEnabledShouldOverrideRestoreboolfalse
FloatingXSizenumber0
FloatingYSizenumber0
MinWidthnumber0
MinHeightnumber0

Properties

NameType / ReturnsDescription
DockWidgetPluginGuiInfo.InitialEnabledboolThe enabled state of the PluginGui if it does not have a saved state from a previous session.
DockWidgetPluginGuiInfo.InitialEnabledShouldOverrideRestoreboolIf true, will override any saved enabled state with the InitialEnabled value.
DockWidgetPluginGuiInfo.FloatingXSizenumberThe initial pixel width of the PluginGui when floating.
DockWidgetPluginGuiInfo.FloatingYSizenumberThe initial pixel height of the PluginGui when floating.
DockWidgetPluginGuiInfo.MinWidthnumberThe minimum pixel width of the PluginGui.
DockWidgetPluginGuiInfo.MinHeightnumberThe minimum pixel height of the PluginGui.

DockWidgetPluginGuiInfo.InitialEnabled

The initial enabled state of a PluginGui created using this DockWidgetPluginGuiInfo. If a PluginGui with the same ''pluginGuiId'' has previously been created in an earlier session of Roblox Studio, then it will reload that saved enabled state (unless InitialEnabledShouldOverrideRestore is true).

FieldValue
typebool

DockWidgetPluginGuiInfo.InitialEnabledShouldOverrideRestore

If true, the value of InitialEnabled will override the previously saved enabled state of a PluginGui being created with this DockWidgetPluginGuiInfo. The previously saved enabled state is loaded based on the pluginGuiId argument of Plugin:CreateDockWidgetPluginGuiAsync().

FieldValue
typebool

DockWidgetPluginGuiInfo.FloatingXSize

The initial pixel width of a PluginGui created using this DockWidgetPluginGuiInfo, when the InitialDockState is set to Float.

FieldValue
typenumber

DockWidgetPluginGuiInfo.FloatingYSize

The initial pixel height of a PluginGui created using this DockWidgetPluginGuiInfo, when the InitialDockState is set to Float.

FieldValue
typenumber

DockWidgetPluginGuiInfo.MinWidth

The minimum width of a PluginGui created using this DockWidgetPluginGuiInfo, in pixels.

Each platform has its own absolute minimum that Roblox will enforce. These variations exist to account for the contents of the title bar (which varies by platform) when the widget is floating. For example, on a Mac, the width can never be less than ~80 pixels to accommodate the close/minimize/maximize buttons.

FieldValue
typenumber

DockWidgetPluginGuiInfo.MinHeight

The minimum height of a PluginGui created using this DockWidgetPluginGuiInfo, in pixels.

FieldValue
typenumber