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.
| Route | You get | Start here |
|---|---|---|
| Your own engine | The 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 Engine | A plugin that is the host: UMG widget, world-space component, screen layers and a Blueprint API. Windows only. | Unreal Engine |
| O3DE | A 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
- Install the platform interfaces (logging, file system, memory) and start the SDK with your
license settings. Create a
UIViewonly if the SDK is active. - Start the JavaScript engine. Nothing does it for you.
- Each frame: forward input, call
tick(), callbuildCommandList(), and draw the list. - 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
| Page | What it covers |
|---|---|
| Your own C++ host | The order of calls, the platform interfaces, SDK settings, the frame loop, threads, DevTools and shutdown |
| Unreal Engine | Install, license settings, the widget, view assets, layers, the world-space component and the Blueprint API |
| O3DE | Setup, settings, the components, the Atom pass and known gaps |
| Rendering backends | The command list, the base class for a render context, and the backends that exist today |
| Input | Mouse, wheel, keyboard, IME, touch, focus and gamepads, and hit testing |
| Scripting | Running scripts, calling page functions, native functions and data models |
| File system | Roots, 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.