Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.4.3f1
Issue ID
867955
Regression
No
Unity crashes when using [DrawGizmo] attribute in generic class with generic field
Description:
Unity crashes when trying to show gizmos (only if using the [DrawGizmo] attribute in a static method inside a generic class with a generic field).
To reproduce:
1. Open test scene and attach "Example" script to "GameObject" game object.
Note: Unity crashes.
2. Remove line "X someField;" in "GizmoDrawer" script which is found in the "Editor" folder.
3. Open test scene and attach "Example" script to "GameObject" gameobject.
Note: Unity doesn't crash.
Reproduces with: 5.2.5f1; 5.3.6f1; 5.4.3f1; 5.5.0p3; 5.6.0b3;
Note: Also happens when "Example" script is attached to "GameObject" game object and then the line "X someField;" is written in "GizmoDrawer" script.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Sprite Renderer image is changed when Mask Interaction is turned by C# script
- URP Player remains in Windows Background processes when the application is closed
- [Android] The built-in URP shaders Lit, Complex Lit and the Simple Lit are not rendered when built on Android devices with an Adreno 300 series GPUs
- "Radio Button" disappears when added under the "RadioButtonGroup" and the parent Visual Element is selected
- ScrollView Scrollbar is jittering when Movement Type "Elastic" is selected and a mouse with a freewheel is used
Add comment