Brokkr/surfaces/unity
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-12 13:26:14 +01:00
..
Packages/com.gamecult.brokkr Expose Unity scene control through Brokkr 2026-06-12 13:26:14 +01:00
README.md Expose Unity scene control through Brokkr 2026-06-12 13:26:14 +01:00

Brokkr Unity Adapter

This package lets the Unity Editor publish a host snapshot to the local Brokkr daemon.

Install By Local Path

Add this package to a Unity project's Packages/manifest.json:

"com.gamecult.brokkr": "file:E:/Projects/Brokkr/surfaces/unity/Packages/com.gamecult.brokkr"

Then open GameCult > Brokkr.

Local Smoke

Start the daemon:

cargo run -p brokkr-daemon -- serve

In Unity:

  1. Open GameCult > Brokkr.
  2. Leave HTTP endpoint as http://127.0.0.1:8798.
  3. Click Ping Brokkr.
  4. Click Capture Snapshot.
  5. Click Publish Snapshot.

The daemon should retain the latest Unity snapshot at:

http://127.0.0.1:8798/hosts

The richer read surfaces are available at:

http://127.0.0.1:8798/unity/scene
http://127.0.0.1:8798/unity/assets
http://127.0.0.1:8798/eve/unity/gui
http://127.0.0.1:8798/eve/unity/tui

Writes are queued through Brokkr and executed by the Unity editor adapter:

@'
{
  "schema": "gamecult.brokkr.unity_command.v0",
  "commandId": "demo-create",
  "action": "createGameObject",
  "name": "Brokkr Demo"
}
'@ | curl.exe -s -X POST http://127.0.0.1:8798/commands/unity -H "Content-Type: application/json" --data-binary "@-"

Then click Poll Command in Unity or enable Auto Poll Commands.

The Unity plugin is still an adapter. Brokkr owns the Verse-facing provider and receipt lane; Unity owns Unity editor truth.