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
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Index/ID of the UI passthrough element | string | nil |
| 2 | UI passthrough configuration table | table | nil |
Configuration Table
Prop
Type
Methods
Once created, you can rearrange or update the passthrough using:
SetInstance
Replaces the embedded GUI instance.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | GuiBase2d instance to parent | GuiBase2d | nil |
SetHeight
Adjusts the allocated height.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Height in pixels | number | nil |
SetVisible
Shows or hides the passthrough content.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Visibility toggle | boolean | nil |