LogoObsidian

UI Passthrough

UI Passthrough lets you embed your own GUI instances inside a groupbox.

Playground

UI Unavailable (CustomFrame)

Provide the variable name of your GUI instance.

Control whether the passthrough frame is displayed.

Usage

AddUIPassthrough allows you to place any existing GuiBase2d instance inside the library layout.

Arguments

Groupbox:AddUIPassthrough("CustomUI", {
    Instance = CustomFrame,
})
Arg IdxArgument DescriptionTypeDefault
1Index/ID of the UI passthrough elementstringnil
2UI passthrough configuration tabletablenil

Configuration Table

Prop

Type

Methods

Once created, you can rearrange or update the passthrough using:

SetInstance

Replaces the embedded GUI instance.

Passthrough:SetInstance(newInstance)
Arg IdxArgument DescriptionTypeDefault
1GuiBase2d instance to parentGuiBase2dnil

SetHeight

Adjusts the allocated height.

Passthrough:SetHeight(height)
Arg IdxArgument DescriptionTypeDefault
1Height in pixelsnumbernil

SetVisible

Shows or hides the passthrough content.

Passthrough:SetVisible(visible)
Arg IdxArgument DescriptionTypeDefault
1Visibility togglebooleannil

Example

local Passthrough = Groupbox:AddUIPassthrough("CustomUI", {
    Instance = CustomViewport,
    Height = 180,
})
 
Passthrough:SetVisible(true)
Passthrough:SetInstance(AnotherFrame)
Passthrough:SetHeight(220)

On this page