Skip to content

Search documentation

Enter at least two characters.

    API reference

    SDK 0.1.0-preview.1 · ExperimentalDownload & release notes ↗

    Use this reference to answer a specific question while building an app. Every API below has an example and member explanations; you do not need to read the entire list first.

    New to the notation? Read how to read the API. New to LUI? Start with your first app.

    I want to… Start here
    Open a window and respond to a button Window · TextButton
    Read user input TextBox · CheckBox · Slider
    Arrange or scroll content UIListLayout · UIGridLayout · ScrollingFrame
    Show a declared image ImageLabel
    Call an HTTP endpoint HttpService
    Save ordinary app preferences Advanced StorageService with a custom host
    Understand a type/signature Reading the API
    • Instance The base of the LUI object tree. Instances have names, parents, properties and an explicit lifetime.
    • Window A top-level native window. Create its content, then set Visible to true to show it.
    • GuiObject The shared base for visual objects: geometry, visibility, styling, focus and input.
    • Frame A container for arranging other visual objects. Use it to group a screen or reusable component.
    • TextLabel Displays text that your application can update. Users cannot type into it; use TextBox for editable text.
    • GuiButton The non-creatable shared base of button controls.
    • TextButton A button with a text label. Connect Activated to respond to user activation.
    • TextBox Lets a user enter text. Use TextChanged to read the latest text; selection and input-method composition are also available.
    • CodeEditor Advanced. An experimental code-editing control. Styling and host admission have their own limits; do not assume the complete planned editor is available.
    • CheckBox A control for a boolean choice. Read or assign its checked state and observe changes.
    • Slider Lets a user choose a number between Minimum and Maximum. Read Value or listen for ValueChanged.
    • ProgressBar A visual indicator for progress within a bounded numeric range.
    • ImageLabel Displays an image declared in your project. Set Source to its asset name and read LoadState to track loading.
    • FrameSurface Advanced. An advanced, experimental control for submitting a buffer of image pixels. Ordinary images belong in ImageLabel.
    • UIComponent The non-creatable base of layout helper Instances.
    • UIPadding Adds logical padding around the contents of a container.
    • UIListLayout Arranges children along one axis using logical spacing and LayoutOrder.
    • UIGridLayout Arranges children in cells with explicit logical size and spacing.
    • UISizeConstraint Constrains the resolved logical size of its target.
    • ScrollingFrame A clipped scrolling container with a canonical canvas size and position.
    • StorageService Advanced. Scoped app-private storage installed by a trusted host. Applications use bounded keys, not arbitrary native paths.
    • NotificationService Advanced. Host-installed desktop notifications. Availability depends on the host and platform.
    • TrayService Advanced. Host-installed system-tray integration. Keep platform availability and handle lifetime in mind.
    • PerformanceService Returns bounded runtime performance counters and timing samples.
    • WindowService Lists the windows owned by this application. It cannot inspect or control other applications.
    • PlatformService Reports the host platform and explicitly available features.
    • ThemeService Reads the effective system/application theme and observes theme changes.
    • ClipboardService Capability-gated plain-text clipboard access through the host.
    • DialogService Capability-gated host dialogs. Expected failures are reported through the service contract.
    • AssetService Checks whether an asset name was declared. ImageLabel selects that name for asynchronous decoding; this service has no public Load method.
    • NetworkService Advanced. Capability-gated TCP and UDP networking with bounded asynchronous operations.
    • HttpService Capability-gated asynchronous HTTP requests and cancellation.
    • HttpServerService Creates a bounded HTTP server with explicit routes and lifecycle.
    • NativeHandle Advanced. An opaque owned native resource. Close it when it is no longer needed.
    • NativeRequest Advanced. An owned asynchronous native request with explicit cancellation.
    • PerformanceStats A snapshot of runtime counters and the currently collected timing samples.
    • Color3 An RGB color value. Constructors are documented under globals and constructors.
    • NetworkEndpoint Advanced. An address and port describing a local or remote endpoint.
    • NetworkListenOptions Advanced. Options used to bind a TCP listener.
    • NetworkConnectOptions Advanced. Options used to establish an outbound TCP connection.
    • TcpListener Advanced. An owned TCP listener. Accept connections asynchronously and close the listener when finished.
    • TcpConnection Advanced. An owned TCP byte stream with bounded asynchronous reads and writes.
    • UdpBindOptions Advanced. Options used to bind a UDP socket and bound its datagrams.
    • UdpSocket Advanced. An owned UDP socket with asynchronous datagram receive and send operations.
    • UdpDatagram Advanced. A received buffer and its remote endpoint.
    • HttpHeader A single HTTP header name and value.
    • HttpRequestOptions HTTP method, URL, headers, body and per-request limits.
    • HttpResponse The completed HTTP response, including status, headers, trailers and body.
    • HttpServerOptions Binding, connection and request/response limits for a hosted HTTP server.
    • HttpReplyOptions A route handler’s response status, headers and body.
    • HttpRequest The bounded request information supplied to an HTTP route handler.
    • HttpServer An owned HTTP server with explicit route registration, start and close operations.
    • Instance — create Instance values/objects
    • Vector2 — create Vector2 values/objects
    • UDim — create UDim values/objects
    • UDim2 — create UDim2 values/objects
    • app — get services
    • task — schedule callbacks
    • require — load declared modules
    • Color3 — create Color3 values/objects

    These types describe existing values, event payloads or creation tables. They are not extra services or classes to initialize.

    Connection · Signal · Vector2 · UDim · UDim2 · PointerInput · KeyboardInput · InputEvent · InputSignal · KeyboardShortcut · ShortcutSignal · ThemeSignal · App · WindowInit · FrameInit · TextLabelInit · TextButtonInit · TextBoxInit · CodeEditorInit · CheckBoxInit · SliderInit · ProgressBarInit · ImageLabelInit · FrameSurfaceInit · UIPaddingInit · UIListLayoutInit · UIGridLayoutInit · UISizeConstraintInit · ScrollingFrameInit

    This reference describes SDK 0.1.0-preview.1. The original SDK/schema/type identities and tutorial pins are unchanged. Explanations and examples can be corrected without upgrading your project. Search defaults to the SDK version of the page you are reading; choose another version in Search when needed.