Control Unity Editor from Codex
Project description
name: unity description: Execute Unity Editor commands through Codex Unity Bridge. Requires the com.prodfact.codex-bridge Unity package in the current project and a running Unity Editor.
Unity Bridge Skill
Use this skill when Codex needs to interact with a live Unity Editor from the project workspace.
Overview
Codex Unity Bridge uses a deterministic Python CLI instead of ad-hoc in-context file handling. The CLI owns:
- UUID generation
- atomic command writes
- polling and timeout handling
- response parsing
- cleanup of stale files
- skill installation
That keeps Unity interactions stable across sessions and avoids re-implementing the file protocol each time.
Requirements
- The Unity project has
com.prodfact.codex-bridgeinstalled - Unity Editor is open with that project loaded
- The project root contains
.codex-unity-bridge/after the package initializes - The CLI is installed:
codex-unity-bridge
Runtime Files
- Command file:
.codex-unity-bridge/command.json - Response files:
.codex-unity-bridge/response-{id}.json
This is intentionally separate from the original Claude bridge runtime directory so both bridges can coexist in the same Unity project.
Basic Usage
Run the CLI directly:
codex-unity-bridge [command] [options]
Common commands:
codex-unity-bridge run-tests --mode EditMode
codex-unity-bridge compile
codex-unity-bridge refresh
codex-unity-bridge get-status
codex-unity-bridge get-console-logs --limit 20 --filter Error
codex-unity-bridge play
codex-unity-bridge pause
codex-unity-bridge step
codex-unity-bridge health-check
Natural-Language Examples
Typical prompts that map well to this skill:
Run the Unity tests in EditModeCheck whether Unity is compilingShow the last 10 Unity errorsRefresh the Unity asset databasePause play mode and step one frame
Guidance
- Prefer the CLI over manual edits to bridge files
- Use
--timeoutfor long-running test or compile operations - Use
get-statusorhealth-checkbefore assuming Unity is unavailable - Use
get-console-logs --filter Errorbefore asking for a broad log dump
Troubleshooting
If Codex cannot communicate with Unity:
- Verify the Unity Editor is open with the intended project
- Check that
.codex-unity-bridge/exists at the project root - Run
codex-unity-bridge health-check - Inspect the Unity Console for
[CodexBridge]messages
If the CLI is not on PATH, run:
python -m codex_unity_bridge.cli install-skill
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codex_unity_bridge-0.3.0.tar.gz.
File metadata
- Download URL: codex_unity_bridge-0.3.0.tar.gz
- Upload date:
- Size: 37.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c7d0d527c70ce7e06005c8699c04895f0a52ea1e6738bf6affd4ad948f9699
|
|
| MD5 |
c6cb65da7afe69ceca6d1080cd238344
|
|
| BLAKE2b-256 |
32f394959edbfbae0e65d360060a07181574a6a8e3c46ee4bc7bbc2aa5f9cbab
|
Provenance
The following attestation bundles were made for codex_unity_bridge-0.3.0.tar.gz:
Publisher:
publish.yml on ProdFact/codex-unity-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codex_unity_bridge-0.3.0.tar.gz -
Subject digest:
c7c7d0d527c70ce7e06005c8699c04895f0a52ea1e6738bf6affd4ad948f9699 - Sigstore transparency entry: 1066515334
- Sigstore integration time:
-
Permalink:
ProdFact/codex-unity-bridge@ca83caa5271c339703ecdc0e5868263dc6b9acfc -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/ProdFact
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ca83caa5271c339703ecdc0e5868263dc6b9acfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file codex_unity_bridge-0.3.0-py3-none-any.whl.
File metadata
- Download URL: codex_unity_bridge-0.3.0-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7acef0267d61c61deb17b40d2c99561f606d5888f77b54ce805b0e4ba1f46c10
|
|
| MD5 |
871a7c05093bfdaf9051f292432e9c7e
|
|
| BLAKE2b-256 |
2f436275a6d270718831f7e74836100a76a781dcea664375ded5664ebe15bd88
|
Provenance
The following attestation bundles were made for codex_unity_bridge-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on ProdFact/codex-unity-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codex_unity_bridge-0.3.0-py3-none-any.whl -
Subject digest:
7acef0267d61c61deb17b40d2c99561f606d5888f77b54ce805b0e4ba1f46c10 - Sigstore transparency entry: 1066515338
- Sigstore integration time:
-
Permalink:
ProdFact/codex-unity-bridge@ca83caa5271c339703ecdc0e5868263dc6b9acfc -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/ProdFact
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ca83caa5271c339703ecdc0e5868263dc6b9acfc -
Trigger Event:
push
-
Statement type: