Skip to content

[Bug]: Compile Error without com.unity.modules.screencapture package #1176

@LovorDev

Description

@LovorDev

What happened?

What happened?
After upgrading from 9.6.8 to 9.7.1, the project fails to compile with:

Library\PackageCache\com.coplaydev.unity-mcp@efaf786e8772\Runtime\Helpers\ScreenshotUtility.cs(269,23): error CS0103: The name 'ScreenCapture' does not exist in the current context

Windows

Reproduction steps

Install package without dependency
It appear after compile try

Unity version

6000.3.10f

MCP for Unity package version

9.7.1

Python server version

No response

MCP client

Codex

Transport

HTTP (default)

OS

Windows

Relevant logs / console output


Checks

  • I searched existing issues and did not find a duplicate
  • I included logs / steps to reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions