ViewportFrame
Renders 3D content inside a 2D UI. Maps to Roblox ViewportFrame.
luau
PeanutUI.ViewportFrame {
currentCamera = workspace.CurrentCamera,
}Properties
In addition to the shared widget properties:
| Property | Type | Description |
|---|---|---|
currentCamera | Camera? | Camera used to render the viewport. |
imageColor | Color3 | Tint color. |
imageTransparency | number | Transparency. |
ambient | Color3 | Ambient light color. |
lightColor | Color3 | Light color. |
lightDirection | Vector3 | Light direction. |
Events
ViewportFrame uses the shared widget events with no additions.