Skip to main content

ViewportControls

Controls for Viewport

Functions

new

ViewportControls.new(
viewportInstance,
viewportModelViewport
) → BaseObject

Create the controls for dragging.

SetEnabled

ViewportControls:SetEnabled(enabledboolean) → ()

Sets the enabled state of the controls

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Create the controls for dragging.",
            "params": [
                {
                    "name": "viewport",
                    "desc": "",
                    "lua_type": "Instance"
                },
                {
                    "name": "viewportModel",
                    "desc": "",
                    "lua_type": "Viewport"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "BaseObject"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 25,
                "path": "src/viewport/src/Client/ViewportControls.lua"
            }
        },
        {
            "name": "SetEnabled",
            "desc": "Sets the enabled state of the controls",
            "params": [
                {
                    "name": "enabled",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 48,
                "path": "src/viewport/src/Client/ViewportControls.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "ViewportControls",
    "desc": "Controls for [Viewport]",
    "source": {
        "line": 5,
        "path": "src/viewport/src/Client/ViewportControls.lua"
    }
}