Web UI
Last updated
Was this helpful?
Last updated
Was this helpful?
The Web UI has been added in v34 and is experimental.
It currently only works on Windows and it can incur a significant performance penalty, making it currently unsuitable for large scale events.
The Web UI system allows the developer to have a full fledged browser within their experience, while providing two-way communication between the web page and the game.
As usual, our Example Map contains a small demo which showcases:
A web page being rendered in the world.
Input from the player cursor affecting the web page.
External media (YouTube video) being played from within the browser.
The web page affecting a world actor.
Alternating between the a world texture and a fullscreen UI widget.
Enabling transparency currently incurs a very significant performance penalty. Do not enable it unless you absolutely require it.
This feature will only ever be supported on Windows and Mac. Keep this in mind if you're planning a long-term project where mobile support might be considered.
The widget can be configured to support clicking behind the transparent parts of the interface for games that require the mouse cursor to always be visible. This setting is available in the widget blueprint under the โBehaviorโ section:
This directs the underlying slate widget to sample the pixel under the mouse position on each game tick and dynamically toggles the widget between Hit Test Invisible and Visible modes. It is also recommended to enable mouse click/over events in your game when utilizing this functionality since ActorOnClicked and ActorBeginCursorOver or ActorEndCursorOver events are automatically built-in to actor blueprints: