Aperture UI
Integration

Unreal Engine

The Aperture UI plugin for Unreal Engine. Install, license settings, a UMG widget, view assets, screen layers, world-space screens and the Blueprint API.

The Aperture UI plugin runs HTML, CSS and JavaScript inside Unreal Engine. It creates the SDK for you, supplies every platform interface, draws each view into a render target with Unreal's RHI, and forwards Slate input to the page. You write the pages, and you do not write a host or a render context.

What you need

  • Unreal Engine 5.8. The plugin descriptor (ApertureUI.uplugin) sets EngineVersion to 5.8.0. This site has no test results for other versions.
  • Windows (Win64). Both of the plugin's modules, ApertureUI (runtime) and ApertureUIEditor (editor), have a platform allow list of Win64.
  • The plugin folder. Download the unreal package from the portal (see Your first view). It is the ApertureUI plugin folder with the engine's RuntimeBuild inside ThirdParty/ApertureUI. The folder holds the plugin's source, so Unreal builds it with your project.

The plugin's ApertureUI.Build.cs expects the RuntimeBuild at ThirdParty/ApertureUI with its include/, lib/, bin/, shaders/ and data/ folders, and it builds as C++20. Of the build settings in Requirements, it applies the platform include path, BUILDSYSTEM_COMPILE_ENGINE_AS_DLL and LINAVG_DISABLE_TEXT_SUPPORT. It does not define BUILDSYSTEM_BUILDTYPE_<Configuration>. When you replace the SDK with a newer package, replace include/, lib/, bin/, shaders/ and data/ together: headers and import libraries must match.

Install

  1. Copy the ApertureUI folder to <YourProject>/Plugins/ApertureUI.
  2. Generate the project files, and enable Aperture UI in the Plugins window if it is not on.
  3. Open Project Settings > Plugins > Aperture UI, and set the license fields below.
  4. Build and start the editor. The log should say "Aperture UI module initialized successfully".

The runtime module loads at PostConfigInit, loads the engine DLLs from ThirdParty/ApertureUI/bin, and starts the SDK once the engine and the RHI are up (OnPostEngineInit), so the project settings are in effect. A view cannot be created before that. Is Aperture UI Ready (Blueprint) and FApertureUIModule::Get().IsInitialized() (C++) tell you whether it succeeded.

Check ThirdParty/ApertureUI/MANIFEST.md for the package's Configuration (Debug, Dev or Shipping). The SDK uses local certificate checks; development SDKs additionally verify the project key against signed hashes in the certificate. The plugin does not change the SDK's build configuration to match your Unreal target, so use the Shipping SDK for distribution. See Licensing in practice.

License settings

The plugin fills an aperture::LicenseConfig from these places and passes it to ApertureSDK::Initialize:

ValueWhere to set itSaved to
Project IDProject Settings > Plugins > Aperture UI > Licensing > License Project IdDefaultGame.ini
Certificate pathLicensing > License Certificate Path. Empty means aperture.license in the Unreal project directory.DefaultGame.ini
License keyProject Settings > Plugins > Aperture UI (User) > License KeyEditorPerProjectUserSettings.ini

The key lives in a separate per-user settings class so that it is never committed or baked into a shipped build. The environment variables APERTUREUI_LICENSE_KEY, APERTUREUI_PROJECT_ID and APERTUREUI_CERTIFICATE_PATH override the matching setting, which is how a build machine or CI supplies them.

; Config/DefaultGame.ini
[/Script/ApertureUI.ApertureUISettings]
LicenseProjectId=your-project-id

Current SDK license checks run locally. A development SDK needs your project key and the signed aperture.license; it does not activate online, bind a machine, or renew a cached lease. A Shipping SDK validates the certificate without a development key. The certificate must authorize the SDK's release date and platform.

Development SDKs do not check the editor executable name. A Shipping SDK checks executable names even when hosted in the editor, so include UnrealEditor.exe when testing that SDK in Unreal, and include each packaged game executable when issuing the title certificate. The Unreal plugin uses the project directory as its default certificate location; set License Certificate Path or APERTUREUI_CERTIFICATE_PATH explicitly when your packaged layout differs. If validation fails, the SDK stays inactive and the module logs the reason.

Project settings

Everything else is under Project Settings > Plugins > Aperture UI, saved in DefaultGame.ini.

SettingMeaning
Script Thread Count (1 to 8)The size of V8's worker pool. Default 2.
Render Thread Count (1 to 4), Composition Thread Count (1 to 4)Passed to the SDK, which does not read them in this version.
UI Resources PathThe folder that pages load from. A relative value is relative to the project's Content folder. When empty it is ThirdParty/ApertureUI/data inside the plugin.
V8 ICU Data Path, V8 Snapshot PathAdvanced. Empty means ThirdParty/ApertureUI/bin/resources.
Default Clear ColorThe render target's clear color. Transparent by default, because a view is normally an overlay.
Enable GPU Font Rendering (advanced)Draw text as GPU vector glyphs. On by default. Off sends all text through glyph atlases instead. The render bridge handles both.
Additional FontsFonts to register at startup. Each entry has a family (Default, SansSerif, Serif, Monospace, Emoji), a font file or a Font Face asset (the asset wins), and a flag that makes it the family's primary fallback.
Enable DevTools, DevTools PortSee Limits.
Log VerbosityMinimum level (Info, Warning, Error) for engine messages in the LogApertureUI category.

Page scripts log to the LogApertureUIScript category.

Put a page on screen

Content file access is sandboxed

The current FApertureUIFileSystem applies the SDK path sandbox before reading content. Configure UI Resources Path for your page root; the plugin also trusts its bundled SDK data. Keep host-trusted roots narrow. See File system.

A UMG widget. Add Aperture UI View (palette category Aperture UI) to a Widget Blueprint.

PropertyMeaning
View AssetA view asset (see below). When set, the two properties after it are ignored.
Initial Html FileA file path relative to the UI resources path.
Initial Html StringInline HTML, used when no file is set.
Viewport SizeThe size of the render target, 64 to 4096 pixels.
Auto Viewport SizeMatch the widget's on-screen size instead.
Input ModeWhenFocused (default), CaptureAll or Transparent. See Input.

Load Html, Load Html String, Execute JavaScript and Get Aperture View are callable from Blueprint, and the widget forwards On Document Ready and On Title Changed. The widget creates its view when it is built, and the game instance's UApertureUISubsystem ticks it.

A view asset. UApertureUIViewAsset is a data asset (Content Browser, Miscellaneous, Aperture UI View Asset). It names the entry file, or holds inline HTML, and can add scripts and an on-ready script:

PropertyMeaning
Html FileThe entry file. A relative path resolves against the project's Content folder first, then against the package's data folder.
Inline HtmlUsed when Html File is empty.
Additional ScriptsScript files that run after the document loads.
On Ready ScriptJavaScript that runs after the additional scripts.
Viewport SizeThe initial resolution.
Dev Server Url, Allow Dev ServerLoad the page from a dev server. See Hot reload.

Screen layers. UApertureUILayerSubsystem stacks screens the way a UI framework does. It has five stock layers, as gameplay tags: ApertureUI.Layer.Background, .GameHUD, .Menu, .Modal and .Toast, in that order from back to front. Push Screen creates a view for a view asset and returns a handle. Pop Screen, Remove Screen and Clear Layer take screens off again. Each screen is its own view, with its own document and V8 context, so a broken menu cannot take the HUD down. A tag that is not one of the five sorts above all of them.

Each screen has an input policy, and the frontmost screen across all layers sets the one in force: Passive takes no input (a HUD), GameAndUI gives input to both with the mouse free, and UIOnly captures the mouse for modal screens.

A world-space screen. UApertureUIComponent renders a page into a texture that a mesh can show. Set Html File and Resolution (64 to 4096), give it a Base Material with a texture parameter named ApertureTexture (the name is a setting), and apply Get Material Instance to a mesh. Send Hit Input takes a UV from a line trace and sends the mouse down, up and click to the page.

The view

UApertureUIView wraps one engine view. Create one with UApertureUISubsystem::CreateView, with Create Aperture View (Standalone) (then you tick and shut it down yourself), or let a widget, component or layer create it.

  • Loading: LoadHtmlFromFile, LoadHtmlFromString, LoadHtmlFromUrl (needs the network provider, which the plugin installs) and LoadFromAsset.
  • ExecuteJavaScript, SetViewportSize, GetDocumentTitle, GetDocumentUrl.
  • SetEnvVariable and SetSafeAreaInsets set the values behind CSS env(safe-area-inset-*), for title-safe areas.
  • Events: OnDocumentReady, OnTitleChanged and OnURLChanged. The view derives them by comparing state after each tick, so they arrive one tick after the change.
  • GetTexture is the UTextureRenderTarget2D the view draws into. GetNativeView gives the aperture::UIView* for C++ that needs more.

Talk to the page

UApertureUIBinder, from UApertureUIView::GetBinder(), connects Blueprint and C++ to the page:

To do thisCallIn the page
Call game code from the pageBindFunction(Name), then handle OnFunctionCalled(Name, Arguments)aperture.Name("a", "b"). Arguments are strings. The event is broadcast on the game thread.
Send an event to the pageTriggerEvent(Name, JsonPayload)aperture.on("Name", (data) => ...)
Push a struct (C++ only)GetBinder()->SetModel(Name, MyStruct)aperture.models.Name, and an event model:Name
Run a scriptExecuteJavaScript(Script)

Bind functions before the document loads. A view that already has its V8 context does not pick up new bindings. The UMG widget loads its content when it is built, so leave its content properties empty, bind, and then call Load Html.

SetModel serializes the struct's properties to JSON by reflection and delivers it by running a script, so each update costs a JSON string round trip. The aperture helper object is installed on the first tick after a load, and bound functions exist from the load itself. For declarative bindings with data-bind-* attributes, see Scripting. The plugin does not wrap setDataModel; call it on GetNativeView().

Input

The Slate widget forwards input to the view in the right order: a mouse press, then on release the mouse up and the click. Wheel notches become pixels, 100 per notch by default; change it with the console variable ApertureUI.WheelScrollPixels. Touch is tracked as a full set of contacts, and a cancelled gesture is sent as a cancel.

Input ModeMouseKeyboard
WhenFocusedMoves reach the page and also pass through to the game. A click takes keyboard focus.Only while the widget has focus.
CaptureAllThe page consumes the mouse.The page consumes the keyboard.
TransparentNothing is consumed. The widget only displays.Nothing is consumed.

On a gamepad, the d-pad and the left stick move focus to the control in that direction (MoveFocusSpatial). The shoulder buttons move through tab order, the bottom face button sends an Enter key and the right face button sends Escape. An Escape that the page does not handle goes on to the rest of Slate. When Slate navigation or code gives the widget focus, the document focuses its first focusable control.

Enter runs form submission from a text field and reaches keydown listeners. It does not click a focused button or link in this version, so the bottom face button needs a page handler to do anything. See Input. IME events are available as SendIMECompositionUpdate, SendIMECompositionCommit and SendIMECompositionCancel.

Hot reload from a dev server

A view asset can load its page from a development server instead of its file, so a watch server hot-reloads the UI without cooking: set Dev Server Url to something like http://localhost:5173. It falls back to the packaged file when the server does not answer. The feature is compiled out of Shipping builds. In other builds the console variable ApertureUI.UseDevServer 0 turns it off to test what a shipping build would load.

Editor tools

The editor module adds importable HTML, CSS and JS asset types with thumbnails, and an Aperture UI menu with license information, Restart Aperture UI (it destroys every live view) and links.

Limits

These describe the 26.08 plugin source. The Windows generic 26.08.0.1 package does not include the plugin; obtain the matching Unreal distribution separately. SDK features do not automatically add the corresponding Blueprint or plugin integration.

  • Windows only. The plugin and both modules allow only Win64.
  • Content access is contained. The 26.08 adapter applies the SDK path sandbox before reads. See Put a page on screen.
  • Startup of a packaged game is unverified, and a known risk. The module finds the engine DLLs and the V8 and data files through the plugin manager, under <Plugin>/ThirdParty/ApertureUI (bin, bin/resources and data). ApertureUI.Build.cs stages the DLLs to the binaries folder, and the resources, shaders and data under <Binaries>/resources and <Binaries>/ApertureUI. If the plugin's ThirdParty folder is not in the packaged build, the module logs that it cannot find bin and the plugin does nothing. Test a packaged build early, and do not plan a release around it before you have.
  • <video> draws nothing. The render bridge handles images, SVG, canvas and Lottie animations, and has no video path.
  • No DevTools server. The runtime module never starts one. Enable DevTools and DevTools Port only decide whether Aperture UI > Open DevTools in Browser opens a browser tab at 127.0.0.1:<port>. To debug a page, start the server from your own module (see Your own C++ host) or open the page in APPlayer, which comes with the Source add-on. The 26.08.0.1 Windows SDK's server is functional, but the plugin must start and tick it before that browser launcher can connect.
  • On Console Message never fires. The delegate is declared and nothing broadcasts it. A page's console output goes to the LogApertureUIScript log category.
  • No WebSocket. The plugin's network provider implements HTTP and HTTPS fetches. The page's WebSocket reports an error and closes.
  • View assets. Additional Stylesheets, Clear Color and Transparent Background are declared and not read. The clear color comes from the Default Clear Color project setting.
  • Content staging. The adapter reads through Unreal file interfaces, which can resolve staged pak content. HTML is not automatically cooked by importing a view asset: stage the UI folder and verify it in a packaged build.

On this page