Skip to content

fix: declare required Unity module dependencies#1122

Draft
sean2077 wants to merge 1 commit into
CoplayDev:betafrom
sean2077:codex/add-imageconversion-dependency
Draft

fix: declare required Unity module dependencies#1122
sean2077 wants to merge 1 commit into
CoplayDev:betafrom
sean2077:codex/add-imageconversion-dependency

Conversation

@sean2077
Copy link
Copy Markdown

Summary

Adds missing built-in Unity module dependencies to the MCP for Unity package manifest:

  • com.unity.modules.imageconversion
  • com.unity.modules.physics2d
  • com.unity.modules.screencapture

Root Cause

MCPForUnity.Runtime directly uses APIs from these modules:

  • Texture2D.EncodeToPNG() from Image Conversion
  • Physics2D from Physics 2D
  • ScreenCapture from Screen Capture

Projects that do not already enable these built-in modules can fail script compilation after installing the package.

Validation

Validated in a Unity 6000.3.15f1 project that originally failed compiling MCPForUnity.Runtime with missing module references. After declaring the dependencies, Unity Package Manager resolved the three built-in modules and batchmode script compilation completed successfully.

MCPForUnity.Runtime uses Texture2D.EncodeToPNG, Physics2D, and ScreenCapture APIs. Declaring their built-in modules prevents Unity projects that do not already enable those modules from failing script compilation.

Co-authored-by: Codex <noreply@openai.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 13, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: db32dbd7-ecba-48be-8fed-f347b0d56fc4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant