Skip to content
Roblox API Reference

ViewportFrame

GuiObject that renders 3D objects inside its bounds.
Memory category
Gui
Own members
10
Inherited members
156
Subclasses
0
Siblings
12

Properties88

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Inherited fromGuiBase2d17

Property categoryData

Property categoryDebugging

Property categoryLocalization

Property categorySelection

Inherited fromGuiObject39

Property categoryAppearance

Property categoryBehavior

  • Determines if descendant GuiObjects outside of the bounds of a parent GUI element should render.
    • Read capabilities: UI
  • Deprecated: This property is deprecated. Use UIDragDetector instead, as it supports more input types and can be better customized.
    Determines whether a GuiObject (and its descendants) can be dragged around the screen.
    • Deprecated
    • Read capabilities: UI

Property categoryData

Property categoryEventReplicator

Property categorySelection

Property categoryState

Defined byViewportFrame9

Property categoryAppearance

  • ViewportFrame.Ambient: Color3 = Color3.new(0.784314, 0.784314, 0.784314)
    The lighting hue applied to the area within the ViewportFrame.
    • Read capabilities: UI
  • ViewportFrame.IsMirrored: boolean = false
    • Hidden
    • Not replicated
    • Roblox script security
    • Read capabilities: UI
  • ViewportFrame.LightColor: Color3 = Color3.new(0.54902, 0.54902, 0.54902)
    The color of the emitted light.
    • Read capabilities: UI
  • ViewportFrame.LightDirection: Vector3 = Vector3.new(-1, -1, -1)
    A Vector3 representing the direction of the light source.
    • Read capabilities: UI

Property categoryData

  • ViewportFrame.CameraCFrame: CFrame = CFrame.identity
    • Hidden
    • Not scriptable
    • Read capabilities: UI
  • ViewportFrame.CameraFieldOfView: number = 1.22173059
    • Hidden
    • Not scriptable
    • Read capabilities: UI
  • ViewportFrame.CurrentCamera: Camera
    Camera that is used to render children objects.
    • Not replicated
    • Read capabilities: UI
    • Load only

Property categoryImage

  • ViewportFrame.ImageColor3: Color3 = Color3.new(1, 1, 1)
    Determines how the rendered viewport image will be colorized.
    • Read capabilities: UI
  • ViewportFrame.ImageTransparency: number = 0
    Determines the transparency of the rendered viewport image.
    • Read capabilities: UI

Methods49

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Inherited fromGuiObject6
Defined byViewportFrame1
  • ViewportFrame:CaptureSnapshotAsync(): string
    • Yields
    • Roblox script security
    • Capabilities: UI
    Returns
    Type
    string

Events29

Inherited fromObject1
Inherited fromInstance9
Inherited fromGuiBase2d1
Inherited fromGuiObject18