unity-mcp/TestProjects/UnityMCPTests/Assets/Scripts/TestAsmdef
David Sarno 17ad011b42 fix: Address CodeRabbit review issues and improve robustness
Critical Bug Fixes:
- Fix operator precedence bug in ManageAsset.cs that could cause null reference exceptions
- Fix GameObject memory leak in primitive creation when name validation fails
- Add proper cleanup with DestroyImmediate when primitive creation fails

ComponentResolver Integration:
- Replace fragile string-based GetComponent() calls with robust ComponentResolver
- Add ComponentResolver integration in ManageAsset.cs for component lookups
- Add fallback to string-based lookup in ManageGameObject.cs for compatibility

Enhanced Error Handling:
- Surface specific ComponentResolver error context in ScriptableObject creation failures
- Add support for setting private [SerializeField] fields in property matching
- Improve debugging with detailed error messages

Assembly Definition Fixes:
- Configure TestAsmdef as Editor-only to prevent build bloat
- Add explicit TestAsmdef reference to test assembly for proper component resolution
- Fix ComponentResolverTests to use accessible CustomComponent instead of TicTacToe3D

Code Quality:
- Disable nullable reference types for legacy codebase to eliminate 100+ warnings
- Maintain backward compatibility while improving reliability

All 45 unit tests pass, ensuring no regressions while significantly improving robustness.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-03 08:27:34 -07:00
..
CustomComponent.cs feat: implement robust ComponentResolver for assembly definitions 2025-09-02 18:45:30 -07:00
CustomComponent.cs.meta feat: implement robust ComponentResolver for assembly definitions 2025-09-02 18:45:30 -07:00
TestAsmdef.asmdef fix: Address CodeRabbit review issues and improve robustness 2025-09-03 08:27:34 -07:00
TestAsmdef.asmdef.meta feat: implement robust ComponentResolver for assembly definitions 2025-09-02 18:45:30 -07:00