Search Issue Tracker
Fixed
Votes
0
Found in
5.0.1f1
Issue ID
695558
Regression
No
RequireComponent of type Collider2D crashes unity on component paste
Script with RequireComponent(typeof(Collider2D)) crashes Unity when is pasted from one GameObject to another GameObject without 2D collider.
Steps to reproduce:
1. Open attached project "case 695558.zip".
2. Open scene "Repro".
3. Copy Component "CopyPasteThisToCrash" script from GameObject "CopyFrom".
4. Paste Component As New to "PasteTo" GameObject.
5. Unity crashes.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
Add comment