Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
5.0.0b1
Issue ID
628487
Regression
No
<GetComponent<SphereCollider>().isTrigger = true> crashes Unity on Windows
To reproduce this bug:
1. Open the attached project
2. Open 'Enemy attacking NPC' scene
3. Press play
4. Stop the scene
5. Unity crashes
6. Open project again and open 'AdvancedAiEnemy' script
7. In Start() method, disable <GetComponent<SphereCollider>().isTrigger = true> line
8. Repeat 3-4 steps again and Unity does not crash
It does not crash on MacOS, instead you get this error:
m_InstanceID != 0
UnityEngine.Component:get_transform()
AdvancedAiEnemy:TriggerExit() (at Assets/Advanced AI/Scripts/AdvancedAiEnemy.cs:966)
IdleSphere:OnTriggerExit(Collider) (at Assets/Advanced AI/Scripts/IdleSphere.cs:54
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "NullReferenceException: Object reference not set to an instance of an object" error is thrown when attempting to remove a binding in the UIBuilder for a UxmlObjectReference
- Missing script error when clicking “script” link in Cave scene’s Water Sample Description
- [VFX Graph] Set Position Shape Gizmo isn't refreshed after shaper switch
- NullReferenceException is thrown when trying to access volumeStack from the HDCamera class
- Visual artifacts appear when using an Orthographic camera with a Reflection Probe
Add comment