Guide

Editor tools

Everything the engine adds to the Unity editor is in one menu, Tools → DevCore. Creating things is also in the right-click menus of the Project and Hierarchy windows.

The menu

Tools → DevCoreWhat it does
Live Preview, New Live PreviewShows a page or a component while you edit it
InspectorThe element tree, styles, layout and performance of a view
LocalesThe locale editor
Create AppWrites the files of a new app
Add App (2D) to Scene, Add 3D View to SceneAdds a DevCoreApp or a DevCore3DView
Download Used IconsSaves the Iconify icons your components name
Live SessionTurns hot reload on and off
Recompile All ComponentsCompiles every .dcue file again

Live Preview

The preview window shows a page or a component outside Play mode. Open it from the menu, by right-clicking a .dcue file (Open in DevCore Live Preview), or with the preview button in VS Code.

Hot reload

While a Live Preview shows a file, saving it (or a component it uses) updates the preview without waiting for Unity to recompile:

You changeWhat happens
A style sheetIt is reloaded in place
A pageThe page is rebuilt
A componentIt is compiled in memory and swapped in, keeping its [State]. A starting value you changed wins
A locale fileIts texts are merged in; removed keys are removed

Errors appear as an overlay with a clickable file:line:column. Unity's own compile waits until you press Apply, close the last preview or leave Play mode. Hot reload works in Play mode too.

Inspector

Tools → DevCore → Inspector shows the element tree of a view, with a tab for each question:

TabShows
StylesThe rules that match, each with its file and line; overridden declarations crossed out
ComputedThe computed value of every property
Box modelContent, padding, border and margin sizes
ComponentThe component's [State], editable live
ListenersThe event listeners on the element
LayersPaint nodes, draw calls, why a batch breaks, atlas pages
PerformanceThe last frame's timings and a graph

VS Code extension

The package includes the DevCore UI extension for .dcue files. Install it with

code --install-extension Packages/com.devcore.uiengine/Editor/VSCode/dcue-<version>.vsix

or Extensions → … → Install from VSIX. Its language server understands the C# of a component, in the script and in the template:

Code completion needs .NET 8 or newer on the machine, and the C# project files Unity writes. Install Unity's Visual Studio Editor package, then in Edit → Preferences → External Tools choose Visual Studio Code, tick Embedded packages and press Regenerate project files.

In Rider and Visual Studio, map *.dcue to the HTML editor.

In the Project window

Licences in builds

After every player build, a Licenses folder beside the game holds the engine's licence, the notices of the third-party material it contains, and every .txt file you put in Assets/DevCoreUIEngine/Licenses (a font's OFL.txt, the icons' licence file). You do not have to remember to copy them.