Search Issue Tracker

Fixed in 2018.3

Fixed in 2017.4, 2018.2



Found in


Issue ID




Editor crashes when adding a script with a UI component requirement to a parent Gameobject



How to reproduce:
1. Open the scene "NewScene" from my attached project "New Unity"
2. Select "Parent" GameObject and from the Assets folder drag a script called "Test2" to its Inspector window

Expected result: There should be a Text component created for the "Parent" GameObject automatically
Actual result: Editor crashes

Reproducible with: 2017.2.2p4, 2017.4.3f1, 2018.1.2f1, 2018.2.0b5

Note: Last stack trace output (Transform::SetParent). Crash doesn't occur with these UI class components: Button, DefaultControls, InputField, Navigation, Selectable. The crash occurs when a script with "[RequireComponent()]" attribute is being added to the parent object in Hierarchy

Comments (1)

  1. 7ed3e482cfc0119e90d9d3db57faed85?d=mm


    Aug 26, 2019 08:10

    Editor has some crashes that was going to be adding that have script on this among the all component required at this. I was able to have the all format that was at this was the site that have some details among the all companies that worked at this project.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.