A GDExtension for rendering and manipulating documents using RmlUi.
Supports Godot version 4.5+
- Linux
- Windows
- Android (todo)
Download the addon from releases pages, or head over to Building Tutorial to build the GDExtension locally.
A new Control-based node is added: RMLDocument, add it to your scene to create a new document.
By default, this node creates an empty document where you can add, remove and modify elements. If you want to load a .rml document instead, use load_from_path, for example:
<!-- res://test.rml -->
<rml>
<body>
<span>Hello!</span>
<button>Test Button</button>
<svg src="icon.svg"/>
<input type="text"/>
</body>
</rml>extends RMLDocument
func _ready() -> void:
load_from_path("res://test.rml")- Document creation and manipulation with
RMLDocumentnode;- Can also create and manipulate documents directly through
RMLServer.
- Can also create and manipulate documents directly through
- Element reference with
RMLElementclass; query_selectorandquery_selector_allto finding elements in the document;- Element inner RML, text content, attributes, style properties, class names and id;
- Full event integration, as well listening to RmlUi's issued events through
add_event_listener; - Full style support with RCSS;
- User-agent style for basic element presentation and style based on Godot's theme;
- Optional, can set project setting
RmlUi/load_user_agent_stylesheetto false; - Can also override with project setting
RmlUi/custom_user_agent_stylesheet;
- Optional, can set project setting
Head over to documentation page for the class reference and more tutorials on how to use this addon.