unity-mcp/TestProjects/UnityMCPTests/Assets
David Sarno c40f3d0357 feat: implement robust ComponentResolver for assembly definitions
- Replace Assembly.LoadFrom with already-loaded assembly search
- Prioritize Player assemblies over Editor assemblies using CompilationPipeline
- Support both short names and fully-qualified component names
- Add comprehensive caching and error handling with disambiguation
- Use Undo.AddComponent for proper editor integration
- Handle ReflectionTypeLoadException safely during type enumeration
- Add fallback to TypeCache for comprehensive type discovery in Editor

Fixes component resolution across custom assembly definitions and eliminates
"Could not load the file 'Assembly-CSharp-Editor'" errors.

Tested with:
- Built-in Unity components (Rigidbody, MeshRenderer, AudioSource)
- Custom user scripts in Assembly-CSharp (TicTacToe3D)
- Custom assembly definition components (TestNamespace.CustomComponent)
- Error handling for non-existent components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-02 18:45:30 -07:00
..
Scenes Set up Unit tests (#220) 2025-08-15 21:24:55 -04:00
Scripts feat: implement robust ComponentResolver for assembly definitions 2025-09-02 18:45:30 -07:00
Tests Improve Windsurf MCP Config (#231) 2025-08-24 06:57:11 -04:00
Editor.meta feat: Automatic Background Compile and Domain Reload for MCP Script Edits and New Script Creation (#248) 2025-09-02 09:36:50 -07:00
Scenes.meta Set up Unit tests (#220) 2025-08-15 21:24:55 -04:00
Scripts.meta Set up Unit tests (#220) 2025-08-15 21:24:55 -04:00
Tests.meta Set up Unit tests (#220) 2025-08-15 21:24:55 -04:00