@mflrevan/ucp
v0.4.0
Published
Unity Control Protocol — CLI for programmatic Unity Editor control
Readme
@mflrevan/ucp
Version 0.4.0 of the Unity Control Protocol CLI.
This package installs the ucp command, downloads the matching published binary for your platform during postinstall, and ships the matching Unity bridge payload inside the npm package.
Install
npm install -g @mflrevan/ucppnpm
pnpm add -g @mflrevan/ucp
pnpm approve-buildsSupported platforms
- Windows x64
- macOS x64
- macOS arm64
- Linux x64
Usage
cd /path/to/MyUnityProject
ucp doctor
ucp connect
ucp scene snapshot
ucp object get-fields --id 46894 --component Transform
ucp asset search -t Material
ucp build targetsBridge install
ucp installDefault ucp install writes a tracked git dependency to Packages/manifest.json pinned to the CLI version. It does not write a local file: dependency unless you explicitly choose a local embedded mode.
Or add this to Packages/manifest.json:
{
"dependencies": {
"com.ucp.bridge": "https://github.com/mflRevan/unity-control-protocol.git?path=unity-package/com.ucp.bridge#v0.4.0"
}
}Release asset source
The installer downloads from:
https://github.com/mflRevan/unity-control-protocol/releases/download/v<version>/...
That means npm publish depends on the matching GitHub release artifacts existing for the same tag.
Links
- Repository: https://github.com/mflRevan/unity-control-protocol
- Releases: https://github.com/mflRevan/unity-control-protocol/releases
License
MIT
