You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_components crashes Unity when serializing Cinemachine camera components #478
The stack trace shows recursive JSON serialization of Matrix4x4 properties that have invalid/degenerate transform values (common in Cinemachine's internal state).
Root Cause
The JSON serializer is recursively serializing Unity internal types (Matrix4x4, transforms) without filtering. When it encounters matrices with invalid TRS decomposition (which Cinemachine uses internally), it triggers the ValidTRS() assertion failure.
Suggested Fix
Add [JsonIgnore] attributes or a custom contract resolver to exclude:
Matrix4x4 properties
Internal Unity transform matrices
Or limit serialization depth for component properties
Activity
coderabbitai commentedon Dec 23, 2025
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Similar Issues
Possible Duplicates
Related Issues
renderer.materialduring edit mode #290🔗 Related PRs
#296 - fix: add parameter validation to manage_gameobject tool [merged]
👤 Suggested Assignees
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord or schedule a call!
Fix CoplayDev#478: Add Matrix4x4Converter to prevent Cinemachine seri…
Test/478 matrix4x4 serialization crash (CoplayDev#481)