/ucp-surfaces:ucp-scene-authoringfrom ucp-surfaces
Builds and inspects Unity Editor scenes via CLI commands: snapshot hierarchy, create primitives, add components, set transforms, raycast, ground objects, and create prefabs. Use for placing, arranging, or measuring scene content.
Ships in ucp-surfaces. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Everything here happens in the open scene of the running editor and registers with Unity's Undo.
Changes are in memory until saved: pass --save on a mutating command, or run ucp scene save.
ucp scene active # name, path, dirty, root count
ucp scene list # scenes in build settings
ucp scene snapshot # root objects with instance ids (lean on purpose)
ucp scene snapshot --filter Player # searches the whole hierarchy, prints each match's path
ucp scene query 'component=Camera' --fields instanceId,name,active
ucp scene query 'name=Enemy' --depth 8
ucp object get-children --path Level/Props --depth 2
object command takes --path Root/Child/Leaf (stable), --name (first match), or
--id (changes on every reload). Prefer paths in scripts.--depth 0 = roots) to keep payloads small; deepen only
where you need to. A --filter always searches the full hierarchy.transform, spatial, and view commands also accept --path "Root/Child/Leaf" and
--name, which survive reloads (--name is the first match; ambiguous when names repeat).ucp scene load Assets/Scenes/Level1.unity # saves dirty titled scenes first
ucp scene load Assets/Scenes/Lighting.unity --additive
ucp scene save
ucp scene focus --path Level/Player --axis 1 0 0 # aim the Scene view at an object (for screenshots)
load saves a dirty titled scene first and discards a dirty untitled one; pass --keep-untitled
to refuse instead of discarding, or --no-save to refuse on any dirty scene (non-zero exit).
ucp object create Crate --primitive Cube # mesh + collider in one call
ucp object create Floor --primitive Plane
ucp object create Enemies # EMPTY container, nothing to see
ucp object create Head --primitive Sphere --parent Player/Body # --parent takes a path, name, or id
ucp object instantiate Assets/Prefabs/Enemy.prefab --name Enemy_01 --parent Enemies
ucp object instantiate -4231 --name Copy # a bare integer clones a scene object
--primitive Cube|Sphere|Capsule|Cylinder|Plane|Quad is the only way to get a built-in mesh from
the CLI. A plain object create makes an empty GameObject; adding MeshFilter and MeshRenderer by
hand cannot reference Unity's built-in meshes and will not render.
ucp object add-component --id 46894 --component Rigidbody
ucp object remove-component --id 46894 --component BoxCollider
ucp object get-fields --path Player --component Rigidbody
ucp object get-property --path Player --component Transform --property m_LocalPosition
ucp object set-property --path Player --component Rigidbody --property m_Mass --value 2.5 # response reads the value back
ucp object set-property --id 46894 --component BoxCollider --property m_IsTrigger --value true
ucp object set-property --id 46894 --component MeshRenderer --property m_Materials --value '[{"path":"Assets/Materials/Crate.mat"}]'
ucp object set-property --id 46894 --component Light --property enabled --value false
ucp object set-active --id 46894 --active false
ucp object set-name --path Props/Crate --to "Crate_A"
ucp object reparent --id 46894 --parent -15774 --sibling-index 0
ucp object delete --id 46894
get-fields lists the serialized names to use with set-property (m_LocalPosition,
m_Mass, ...); public aliases like position also work through reflection.true, 5, [1,2,3], "text", [0.2,0.2,0.2,1] for a color. Negative
numbers and object ids like -55730 are accepted directly.{"instanceId": ...}, {"path": "Assets/..."}, or {"guid": ...}.
Unresolved references fail explicitly instead of silently clearing the field.Vector3 is [x, y, z], a Color is [r, g, b, a].ucp transform get --id 46894 # position, rotation, scale, bounds
ucp transform get --ids 46894,46910,46911 # bulk read
ucp transform move --id 46894 --to 3 0 -2 # world space, absolute
ucp transform move --path "Level/Crates/Crate_A" --to 0 1 0 --relative --space local
ucp transform rotate --id 46894 --euler 0 45 0
ucp transform rotate --id 46894 --euler 0 90 0 --relative
ucp transform scale --id 46894 --uniform 2
ucp transform scale --id 46894 --scale 1 2 1 --relative
ucp transform look-at --id 46894 --at 0 0 0 # world point
ucp transform look-at --path Turret --target Enemies/Enemy_01 --up 0 1 0 # --target: path, name, or id
Prefer these over set-property m_LocalPosition: they handle world/local, relative offsets, and
Euler rotation for you.
ucp spatial bounds --id 46894 # world AABB: center, size, min, max
ucp spatial bounds --id 46894 --no-children
ucp spatial raycast --origin 0 10 0 --direction 0 -1 0 --max-distance 50 --layer-mask Ground
ucp spatial overlap --shape sphere --center 0 1 0 --radius 2
ucp spatial overlap --shape box --center 0 1 0 --half-extents 1 1 1 --query-triggers
ucp spatial ground --id 46894 # drop onto the first surface below and move it there
ucp spatial ground --point 4 10 4 --no-apply # just report the hit
ucp spatial nearest --id 46894 --max 5 --component Light
ucp spatial nearest --point 0 0 0 --tag Enemy
Queries use colliders (raycast, overlap, ground) or renderers/colliders (bounds). An
object without a collider is invisible to a raycast; --primitive objects have one.
ucp prefab status --id 46894 # instance? asset path? overrides?
ucp prefab overrides --id 46894
ucp prefab create --id -15774 --path Assets/Prefabs/EnemyRoot.prefab # scene object -> asset, connected
ucp prefab apply --id -15774 # push instance overrides to the asset
ucp prefab revert --id -15774
ucp prefab unpack --id -15774 --completely false
Arrange a set piece and verify it:
ucp object create Floor --primitive Plane
ucp transform scale --name Floor --uniform 4
ucp object create Crate --primitive Cube
ucp transform move --name Crate --to 2 5 0
ucp spatial ground --name Crate # rests on the floor now
ucp transform rotate --name Crate --euler 0 30 0
ucp spatial bounds --name Crate
ucp view capture --name Crate --max-edge 768 -o crate.png # see it (ucp-visual-feedback)
ucp scene save
Assemble a hierarchy and persist it as a prefab:
ucp object create EnemyRoot # empty root is fine here
ucp scene snapshot --filter EnemyRoot # take its id
ucp object add-component --id -15774 --component Rigidbody
ucp object create Body --primitive Capsule --parent -15774
ucp prefab create --id -15774 --path Assets/Prefabs/EnemyRoot.prefab --save
Read a property, change it, prove it changed:
ucp object get-property --id 46894 --component Rigidbody --property m_Mass
ucp object set-property --id 46894 --component Rigidbody --property m_Mass --value 2.5 --save
ucp object get-property --id 46894 --component Rigidbody --property m_Mass
[editor] ... prefab stage Assets/X.prefab line means the editor is in prefab isolation; scene
commands then operate inside that prefab. Exit prefab mode in the editor or open a scene first.[editor] line's "Modified objects" list and in error messages are live; the ones in
your notes from before a compile are not.object instantiate expects a prefab path or a scene-object id. "PrimitiveType.Cube" is not
an asset; use object create --primitive.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
unity-editor, scene-authoring, gameobject, prefab, transform
npx claudepluginhub mflrevan/unity-control-protocol --plugin ucp-surfaces8 skills in this plugin
/ucp-assetsWork with a Unity project's assets and files through the editor with `ucp asset`, `ucp files`, `ucp material`, `ucp references`, `ucp shader`, and `ucp script`: search and inspect assets, read and write ScriptableObject and material fields, move or rename assets without breaking GUID references, edit importer settings instead of .meta files, find every reference to an asset, and check shader and project-file health. Use when the task touches files under Assets/ or Packages/. For scene objects use ucp-scene-authoring; for UXML/USS use ucp-ui-toolkit./ucp-editor-lifecycleBring a Unity project under control with the `ucp` CLI: install the bridge, open or adopt the editor, read the `[editor]` state line every command prints, recompile or hot-reload method bodies without a domain reload, enter and leave play mode, and recover from modal dialogs. Use when a task starts (is Unity running? is the console red? is the scene dirty?), when a command reports COMPILE ERRORS or a MODAL, or when the editor must be opened, restarted, or closed. For scene content, assets, UI, capture, debugging, or project configuration, use the matching ucp-* skill or the unity-control-protocol omni skill./ucp-project-configConfigure a Unity project from the terminal with `ucp packages`, `ucp settings`, and `ucp build`: search, add, and remove UPM packages, manage scoped registries and manifest dependencies, inspect and selectively import .unitypackage archives, read and set player, quality, physics, and lighting settings, tags and layers, and drive the build pipeline (targets, scenes, scripting defines, builds). Use for project setup, dependency work, and release configuration. For scene content use ucp-scene-authoring; for assets use ucp-assets./ucp-runtime-debuggingFind out what the running Unity project is doing and why with `ucp logs`, `ucp run-tests`, `ucp exec`, `ucp profiler`, `ucp profile`, and `ucp frame capture`: read and follow console logs with filters, run edit-mode or play-mode tests by name pattern, execute registered editor scripts with parameters, hot-reload edited method bodies into a running game with `ucp hot-reload`, profile frames and read hierarchies sorted by self time, and export structured captures. Use for playtesting loops, failure triage, test runs, and performance work. For compile errors and editor state use ucp-editor-lifecycle./ucp-ui-toolkitAuthor and verify Unity UI Toolkit interfaces (UXML, USS, TSS) with `ucp ui`: discover documents and scenarios, lint with Unity's own importers, instantiate a document in an isolated editor panel, inspect its resolved layout and bindings, populate lists and repeaters from JSON scenarios, and capture deterministic PNGs. Use after editing UXML/USS or when the user wants a UI checked or screenshotted without loading a scene. Requires Unity 6 or newer./ucp-version-controlLightweight Unity Version Control (Plastic SCM) operations through the editor with `ucp vcs`: provider status, pending changes, checkout, revert, commit, diff, incoming, update, lock, unlock, history, and conflict resolution. Use when a project is under Unity VCS and the native `cm` CLI is unavailable or you want the editor's own view of pending changes. Prefer `cm` (or git) for everything else.2 plugins in one repository ship this exact skill · first indexed Oct 15, 2026
Other plugins' skills for the same job