MCP Unity 1.3.0 fails to compile on Unity 6000.5.0b8
Environment
- Unity version: 6000.5.0b8
- OS: Windows
- Package installed via Unity Package Manager Git URL:
https://github.com/CoderGamester/mcp-unity.git
- Resolved package:
com.gamelovers.mcp-unity
- Resolved version:
1.3.0
What happened
The package installs successfully. Initially the import appeared quiet, but after AssetDatabase.Refresh() Unity compilation failed on Unity 6000.5.0b8.
Unity reports CS0619 errors because several APIs used by the package are obsolete in this Unity version and are treated as compile errors.
Example failing files
Library\PackageCache\com.gamelovers.mcp-unity@a32e47d4ec87\Editor\Tools\GameObjectTools.cs
Library\PackageCache\com.gamelovers.mcp-unity@a32e47d4ec87\Editor\Resources\GetGameObjectResource.cs
Library\PackageCache\com.gamelovers.mcp-unity@a32e47d4ec87\Editor\Tools\UpdateGameObjectTool.cs
Library\PackageCache\com.gamelovers.mcp-unity@a32e47d4ec87\Editor\Tools\TransformTools.cs
Example errors
error CS0619: 'EditorUtility.InstanceIDToObject(int)' is obsolete: 'InstanceIDToObject(int) is obsolete. Use EditorUtility.EntityIdToObject instead.'
error CS0619: 'Object.GetInstanceID()' is obsolete: 'GetInstanceID is deprecated. Use GetEntityId instead. This will be removed in a future version.'
Affected APIs
The package appears to use older instance ID APIs in multiple files:
Object.GetInstanceID()
EditorUtility.InstanceIDToObject(int)
Unity 6000.5 suggests replacing them with:
GetEntityId
EditorUtility.EntityIdToObject
Expected behavior
The package should compile cleanly on current Unity 6 beta versions, especially Unity 6000.5.x.
Actual behavior
Compilation fails, which prevents testing the WebSocket bridge on port 8090 and runtime MCP tools.
Notes
I removed the package after the compile failure to restore the project to a clean state.
MCP Unity 1.3.0 fails to compile on Unity 6000.5.0b8
Environment
https://github.com/CoderGamester/mcp-unity.gitcom.gamelovers.mcp-unity1.3.0What happened
The package installs successfully. Initially the import appeared quiet, but after
AssetDatabase.Refresh()Unity compilation failed on Unity 6000.5.0b8.Unity reports
CS0619errors because several APIs used by the package are obsolete in this Unity version and are treated as compile errors.Example failing files
Example errors
Affected APIs
The package appears to use older instance ID APIs in multiple files:
Object.GetInstanceID()EditorUtility.InstanceIDToObject(int)Unity 6000.5 suggests replacing them with:
GetEntityIdEditorUtility.EntityIdToObjectExpected behavior
The package should compile cleanly on current Unity 6 beta versions, especially Unity 6000.5.x.
Actual behavior
Compilation fails, which prevents testing the WebSocket bridge on port 8090 and runtime MCP tools.
Notes
I removed the package after the compile failure to restore the project to a clean state.