Publish from Unity
Status: 3.1.1-beta.1, tested on Unity 6.6 (URP), 2026-11-15: install, browser sign-in, publish and bake-on-publish checked in the editor (a bake that comes out black is baked again, then published unbaked, never black). The package also builds on Unity 2022.3 in Built-in, URP and HDRP projects.
Three steps:
- Install the package (once per project).
- Sign in with browser (once per computer).
- Verse ▸ Publish to Verse — the open scene goes out at the best quality the pipeline carries, a progress bar runs, and the streaming link opens in your browser.
You need: Unity 2022.3 or newer (tested on 6.6),
Built-in, URP or HDRP. The package pulls in com.unity.cloud.gltfast
6.14.1 and the built-in modules it uses; there is nothing to configure.
1. Install
Download com.ctruh.verse-publish-3.1.1-beta.1.tgz
from the downloads page. It
bundles verse-prepare for macOS (Apple silicon and Intel), Windows and
Linux under Tools~/. Check it before installing:
shasum -a 256 com.ctruh.verse-publish-3.1.1-beta.1.tgz # Windows: Get-FileHash com.ctruh.verse-publish-3.1.1-beta.1.tgz -Algorithm SHA256On a Mac, the bundled verse-prepare helper under Tools~/ is not
notarized. If macOS refuses to run it after a browser download, remove the
download flag once — xattr -dr com.apple.quarantine <package folder> on
the unpacked package (or on the .tgz before Unity unpacks it).
Keep the file somewhere stable (Unity references a tarball by path — the
project's Packages/ folder is a good place), then **Window ▸ Package
Manager ▸ + ▸ Add package from tarball…** and pick it.
The install finishes with no console errors and a Verse menu.
2. Sign in with browser
Verse ▸ Sign in with Browser (or just publish — the first publish asks). Your browser opens the Verse connect page with a short code. Choose Sign in with email and enter the 6-digit code we send you (a new address makes your free account); the page approves Unity by itself and the editor shows Signed in as you@studio.com. Nothing is pasted.
The key is stored in your Unity preferences (per user and per server),
never in the project, so it is not committed and every project on this
computer uses it. Verse ▸ Sign out removes it; revoking it from your
account signs the editor out on its next publish. Signed-in scenes are
account-owned: permanent, listed in /studio, and their sky becomes an HDR
background. Uploading needs a free account, so Publish asks you to sign in
first; a pasted account token still works under Advanced.
3. Publish
- Verse ▸ Publish to Verse (⌘⌥⇧V / Ctrl+Alt+Shift+V) — the whole open scene.
- Verse ▸ Publish Selection to Verse, or right-click objects in the Hierarchy ▸ Publish to Verse — just those objects.
A small window shows the progress — textures, bake, export, prepare,
upload %, the server's compile stage — also in Unity's background-tasks
bar, with Cancel in both. When the compile finishes the link is copied and
opens in your browser. Server errors are shown verbatim; the upload is
retried exactly once and only on failures that did not come from the Verse
app (edge/proxy errors without X-Verse-Error). If the server cannot be
reached the window says so in plain words.
Defaults are the best quality — there is nothing to tune:
| What | Default |
|---|---|
| Textures | Source resolution. Textures glTFast re-encodes (TGA / PSD / TIF / EXR sources, every normal map, metallic-smoothness and HDRP mask maps) that the importer shrank (2048 default cap) or block-compressed are re-imported uncompressed at source size for the publish, and the project's .meta files are put back byte for byte afterwards. PNG / JPEG colour maps travel as the original file. |
| Materials | Standard, URP Lit and HDRP Lit map 1:1 (base colour, normal, metallic/smoothness → roughness, occlusion, emission with its HDR intensity as KHR_materials_emissive_strength, alpha clip / blend, double-sided, the base map's tiling on every map). Shader Graphs and custom shaders: base colour and normal found by property name, and the bake captures the rest. |
| Bake | Auto, High: a scene's lightmaps, probes and lights are baked into pages; Shader Graph / custom / layered materials are captured into textures (up to 4K) on scenes and single products alike. |
| verse-prepare | Duplicates instanced, unused data dropped, opaque colour maps JPEG 95; no texture is resized. |
| Sky | The skybox becomes the background (HDR image when signed in). |
Advanced (in the window, Verse ▸ Publish Settings…) keeps the knobs: scene name, server URL, a pasted token, open-link-when-done, prepare on/off and its path, bake mode (Auto / On / Off) and quality (High / Draft), sky as background.
Publish from a script or CI
The same state machine runs without the window:
Unity -batchmode -projectPath <project> -logFile publish.log \
-executeMethod Ctruh.VersePublish.VersePublishBatch.PublishFromCommandLine \
-verseScene Assets/Scenes/Main.unity -verseServer https://verse.ctruh.com \
-verseName my-scene -verseResult result.json \
[-verseSelection Path/To/Object] [-verseBake auto|on|off] [-verseBakeQuality high|draft] \
[-verseNoSky] [-verseImportedTextures]Defaults match the menu (High, source-resolution textures);
-verseImportedTextures exports textures as imported. Do not pass -quit
(the publish runs on the editor update loop and the method exits the
editor itself: 0 on success, 1 on failure) or -nographics (glTFast reads
textures back through the GPU). A token, if any, comes from an environment variable on your machine (see
the README in the package). Editor scripts can call
VersePublishBatch.Publish(...) or VersePublishWindow.PublishHeadless(...)
directly. Scripted runs never open browser tabs or touch the clipboard.
Bake materials & lighting (bake-on-publish)
glTFast exports what it can read off Unity's standard Lit property names. Custom shaders, Shader Graphs, detail/layered materials and all of Unity's baked lighting (lightmaps, light probes) are lost, so scenes arrive flat and grey. The window's Bake materials & lighting option bakes what the Game view shows, in the editor, right before the export:
| Window setting | |
|---|---|
| Bake materials & lighting: Auto / On / Off | Auto (default) bakes lighting wherever there is baked lighting (lightmaps) and captures Shader Graph / custom / layered materials everywhere — scenes and single products alike. |
| Quality: High / Draft | High (default): the most detailed bake. Draft: faster, a little less detailed. |
| Sky as background | On by default — see Terrain, LODs and the sky. |
What the bake captures. Each object is captured the way the Game view shows it: its material (Shader Graph, custom and layered materials included), its baked lighting and light probes, the realtime and mixed lights that fall on it with their shadows, emission, and the camera's colour grading. The link shows that look without re-exposing it. Cut-out materials (leaves, fences) keep their holes. Skinned meshes keep one colour per object.
Nothing in your scene changes. Renderer materials, meshes and enabled
flags are swapped for the export and restored afterwards (also on error or
Cancel); the temporary lightmap copy is deleted. The window shows the bake's progress and, when done, what it did. Batch mode:
-verseBake auto|on|off -verseBakeQuality draft|high [-verseNoSky]; the
result JSON says what the bake did.
Terrain, LODs and the sky
These run on every publish, bake on or off:
- LOD groups go out as their most detailed level only.
- Terrain is exported with its painted layers and its trees (up to 4,000). Detail meshes and grass are not exported.
- Sky and background. The skybox, whatever draws it, is captured from
the main camera, graded like the bake. An account-owned publish (token set) uploads it as the scene's Radiance
.hdrbackground (PUT /v1/scenes/<id>/background/image): every visitor sees the sky, and it lights the live-lit parts of the scene. An anonymous publish cannot set a background, so the link carries it:bg=grad:<above>,<horizon>, on live-lit and baked scenes alike.
How close it gets
On our test scenes (Unity's Boat Attack island, a URP interior and the same room under HDRP) the default High bake brings the published link visibly closer to the editor's camera render than publishing without a bake; Draft gets nearly as close and publishes faster. Terrain, LOD0 and the sky travel on every publish, so even an unbaked publish looks closer than before.
Limits. Boat Attack's sea is drawn by a script at run time — there is no mesh to export, so the link has no water. A baked scene's background is one colour (a gradient or the sky image needs a token). HDRP: the camera's exposure and tonemapping are not read, so direct light can come out too bright. Very fine cut-out patterns (a perforated screen) can close up. Bloom, vignette and depth of field are not carried. Skinned meshes are one colour. Specular highlights are not baked (Verse's own reflections apply).
Texture detail
Textures travel at their source resolution, normal maps arrive uncompressed and tiled as in the editor, metallic-smoothness maps keep their tiling, and HDR emission keeps its intensity. This holds on Unity 2022.3 with the Built-in pipeline too.
The prepare step
Between export and upload the plug-in runs verse-prepare on the GLB: it makes the file smaller and keeps every texture's resolution. The panel shows the tool's own progress and result. Prepared files may be up to 20 GB; without the tool, exports under 1 GB upload as they are (the server prepares them losslessly) and larger ones stop with the install hint. Preferences (Advanced): prepare on/off, the binary path, texels per metre, lossless. Details and flags: verse-prepare.
What gets exported
- GLB via glTFast 6.14.1 with Verse's material fixes on top, textures at source resolution.
- The most detailed level of every LOD group, terrains, and the skybox as the background — on every publish.
- A 30-minute limit for the whole publish.
Known seams to watch
- A future major glTFast version may change its export API (errors
mentioning
GameObjectExportorExportSettings); the package pins 6.14.1, which works as-is. - Textures arriving downscaled: they should arrive at source resolution; if they do not, tell us at integrations@ctruh.com.
- HDRP emission intensity is not carried (HDRP states it in nits / EV100 against the scene's exposure); the hue is.
- A URP / Standard smoothness scale below 1 on a material with a smoothness map cannot be expressed in glTF (it scales roughness, not smoothness): such surfaces come out a little rougher than in the editor.