Open Asterune
SceneFrame

SceneFrame

Renders a separate three-dimensional scene inside an interface.

Creatable
Instance.new("SceneFrame")
Inherits
GuiObjectGuiBase2dGuiBaseInstance
Replication
Standard

Behavior

SceneFrame renders a separate three-dimensional scene inside an interface.

Summary

Members68
Properties51
Methods5
Events12

Properties

AbsolutePosition

SceneFrame.AbsolutePosition: Vector2 = Vector2.new(0, 0)

The resolved top-left position of this interface element in pixels.

AbsoluteRotation

SceneFrame.AbsoluteRotation: number = 0

The resolved rotation of this interface element in degrees, including ancestor rotation.

AbsoluteSize

SceneFrame.AbsoluteSize: Vector2 = Vector2.new(0, 0)

The resolved width and height of this interface element in pixels.

Active

SceneFrame.Active: boolean = false

Whether this interface accepts and consumes input.

Ambient

SceneFrame.Ambient: Color3 = Color3.new(0.34, 0.35, 0.38)

The ambient light color used for the SceneFrame scene.

AnchorPoint

SceneFrame.AnchorPoint: Vector2 = Vector2.new(0, 0)

The normalized point within the element used as the origin for Position. (0, 0) is the top-left corner; (0.5, 0.5) is the center.

AutomaticSize

SceneFrame.AutomaticSize: Enum.AutomaticSize = Enum.AutomaticSize.None

The dimensions that resize to fit the element's content.

BackgroundColor3

SceneFrame.BackgroundColor3: Color3 = Color3.new(0.6392157, 0.63529414, 0.64705884)

The color used to fill the element's background.

BackgroundTransparency

SceneFrame.BackgroundTransparency: number = 0

The background transparency, from 0 for opaque to 1 for invisible.

BorderColor3

SceneFrame.BorderColor3: Color3 = Color3.new(0.105882354, 0.16470589, 0.20784314)

The color of the element's border.

BorderMode

SceneFrame.BorderMode: Enum.BorderMode = Enum.BorderMode.Outline

Whether the border is drawn outside, across, or inside the element's bounds.

BorderSizePixel

SceneFrame.BorderSizePixel: number = 1

The border thickness in pixels.

CameraCFrame

SceneFrame.CameraCFrame: CFrame = CFrame.new(0, 0, 0)

The camera transform used to render the SceneFrame.

ClipsDescendants

SceneFrame.ClipsDescendants: boolean = false

Whether descendant rendering is clipped to this element's bounds.

CornerRadius

SceneFrame.CornerRadius: number = 0

The corner radius used for the element's rounded background.

Corners

SceneFrame.Corners: { number } = {}

The individual corner radii used for the element's rounded background.

CurrentCamera

SceneFrame.CurrentCamera: Camera? = nil

The Camera used by the SceneFrame.

Draggable

SceneFrame.Draggable: boolean = false

Whether pointer dragging can move the element.

Environment

SceneFrame.Environment: boolean = true

The environment instance used to light the SceneFrame scene.

FieldOfView

SceneFrame.FieldOfView: number = 30

The vertical field of view of the SceneFrame camera, in degrees.

Framing

Whether the SceneFrame camera is positioned manually, fitted to contents, or orbited.

FramingPadding

SceneFrame.FramingPadding: number = 1.18

The padding included when fitting the camera to scene contents.

Grow

SceneFrame.Grow: number = 0

The share of remaining main-axis space assigned to this child in flow layout.

GuiState

SceneFrame.GuiState: Enum.GuiState = Enum.GuiState.Idle

The element's current idle, hover, pressed, or non-interactable state.

InputSink

SceneFrame.InputSink: Enum.InputSink = Enum.InputSink.None

Which input events this element consumes before they reach elements behind it.

Interactable

SceneFrame.Interactable: boolean = true

Whether the element accepts interaction.

Layout

SceneFrame.Layout: Enum.Layout = Enum.Layout.Flow

Whether children use flow layout or their explicit positions.

LayoutOrder

SceneFrame.LayoutOrder: number = 0

The numeric order of this element when a parent layout sorts by layout order.

LightBrightness

SceneFrame.LightBrightness: number = 2

The directional light intensity used for the SceneFrame scene.

LightColor

SceneFrame.LightColor: Color3 = Color3.new(1, 0.97, 0.92)

The directional light color used for the SceneFrame scene.

LightDirection

SceneFrame.LightDirection: Vector3 = Vector3.new(0.45, -0.72, -0.53)

The directional light vector used for the SceneFrame scene.

NextSelectionDown

SceneFrame.NextSelectionDown: GuiObject? = nil

The interface element selected when navigating down from this element.

NextSelectionLeft

SceneFrame.NextSelectionLeft: GuiObject? = nil

The interface element selected when navigating left from this element.

NextSelectionRight

SceneFrame.NextSelectionRight: GuiObject? = nil

The interface element selected when navigating right from this element.

NextSelectionUp

SceneFrame.NextSelectionUp: GuiObject? = nil

The interface element selected when navigating up from this element.

Opacity

SceneFrame.Opacity: number = 1

The opacity multiplier applied to this element and its descendants.

OrbitSpeed

SceneFrame.OrbitSpeed: number = 24

The angular speed used when the SceneFrame camera orbits its contents.

Position

SceneFrame.Position: UDim2 = UDim2.new(0, 0, 0, 0)

The element position relative to its parent. Scale components use the parent size; offsets are in pixels.

RenderMode

Whether the SceneFrame renders on changes, every frame, or only on request.

Resolution

SceneFrame.Resolution: number = 1

The resolution used for the captured reflection.

Rotation

SceneFrame.Rotation: number = 0

The interface rotation in degrees.

Selectable

SceneFrame.Selectable: boolean = false

Whether interface navigation can select this element.

SelectionImageObject

SceneFrame.SelectionImageObject: GuiObject? = nil

The interface element used to draw the selection indicator.

SelectionOrder

SceneFrame.SelectionOrder: number = 0

The numeric order used for interface selection traversal.

ShowsWorld

SceneFrame.ShowsWorld: boolean = false

Whether the SceneFrame includes the main world in its rendered scene.

Size

SceneFrame.Size: UDim2 = UDim2.new(0, 0, 0, 0)

The element size relative to its parent. Scale components use the parent size; offsets are in pixels.

SizeConstraint

The parent axes used to resolve relative interface size.

Tint

SceneFrame.Tint: Color3 = Color3.new(1, 1, 1)

The color tint applied to the rendered SceneFrame image.

TintTransparency

SceneFrame.TintTransparency: number = 0

The transparency of the SceneFrame tint.

Visible

SceneFrame.Visible: boolean = true

Whether this interface element is rendered.

ZIndex

SceneFrame.ZIndex: number = 1

The element's draw-order index. Interpretation depends on the root's ZIndexBehavior.

Methods

CaptureFocus

SceneFrame:CaptureFocus(): ()

Gives keyboard focus to this interface element.

GetContentBounds

SceneFrame:GetContentBounds(): (Vector3, Vector3)

Returns the bounds of the SceneFrame's scene contents.

GetExecutionGroup

SceneFrame:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Redraw

SceneFrame:Redraw(): ()

Requests another SceneFrame render when using manual rendering.

ReleaseFocus

SceneFrame:ReleaseFocus(): ()

Removes keyboard focus from this interface element.

Events

DragBegin

SceneFrame.DragBegin: RBXScriptSignal

Fires when pointer dragging of the element begins.

DragStopped

SceneFrame.DragStopped: RBXScriptSignal

Fires when pointer dragging of the element ends.

InputBegan

SceneFrame.InputBegan: RBXScriptSignal

Fires when input begins over or is dispatched to this interface element.

InputChanged

SceneFrame.InputChanged: RBXScriptSignal

Fires when input dispatched to this element changes.

InputEnded

SceneFrame.InputEnded: RBXScriptSignal

Fires when input dispatched to this element ends.

MouseWheelBackward

SceneFrame.MouseWheelBackward: RBXScriptSignal

Fires when the mouse wheel scrolls backward over this element.

MouseWheelForward

SceneFrame.MouseWheelForward: RBXScriptSignal

Fires when the mouse wheel scrolls forward over this element.

PointerEntered

SceneFrame.PointerEntered: RBXScriptSignal

Fires when the pointer enters the SceneFrame.

PointerExited

SceneFrame.PointerExited: RBXScriptSignal

Fires when the pointer leaves the SceneFrame.

PointerMoved

SceneFrame.PointerMoved: RBXScriptSignal

Fires when the pointer moves within the SceneFrame.

SelectionGained

SceneFrame.SelectionGained: RBXScriptSignal

Fires when interface navigation selects this element.

SelectionLost

SceneFrame.SelectionLost: RBXScriptSignal

Fires when this element loses interface selection.

Inherited members

Inherited48

GuiObject