Aperture UI
Integration

Integration

How Aperture UI plugs into a game. Your own C++ host, the Unreal Engine plugin or the O3DE gem, and the pages for rendering, input, scripting and files.

Aperture UI has no window, no GPU device and no input loop. A host supplies them: it installs a few platform interfaces, creates a view, ticks it every frame, draws the command list it produces, and forwards input. There are three ways to get a host.

RouteYou getStart here
Your own engineThe engine and its headers, from the generic package. You write the host, and a render context for your graphics API.Your own C++ host
Unreal EngineA plugin that is the host: UMG widget, world-space component, screen layers and a Blueprint API. Windows only.Unreal Engine
O3DEA gem with a system component, an entity component and an Atom pass. Windows only, and early: no scripts or text yet.O3DE

The packages are described in Your first view and Project structure. Each host page shows where that host keeps the license settings: the key, the project ID and the certificate path. The rules behind them are in Licensing in practice.

What every host does

  1. Install the platform interfaces (logging, file system, memory) and start the SDK with your license settings. Create a UIView only if the SDK is active.
  2. Start the JavaScript engine. Nothing does it for you.
  3. Each frame: forward input, call tick(), call buildCommandList(), and draw the list.
  4. At the end: destroy views, then the interfaces, then shut the SDK down.

The Unreal plugin and the O3DE gem do these for you, with the gaps that their pages list.

The pages

PageWhat it covers
Your own C++ hostThe order of calls, the platform interfaces, SDK settings, the frame loop, threads, DevTools and shutdown
Unreal EngineInstall, license settings, the widget, view assets, layers, the world-space component and the Blueprint API
O3DESetup, settings, the components, the Atom pass and known gaps
Rendering backendsThe command list, the base class for a render context, and the backends that exist today
InputMouse, wheel, keyboard, IME, touch, focus and gamepads, and hit testing
ScriptingRunning scripts, calling page functions, native functions and data models
File systemRoots, containment, packed content, fonts and localStorage

APPlayer, the reference host, and its Direct3D 11 and Vulkan render contexts are in the engine source. They come with the Source add-on and are not in the download.

On this page