Search Issue Tracker
Duplicate
Votes
0
Found in
5.6.0f3
Issue ID
901114
Regression
Yes
AddComponent<Image>() on a new created child GameObject disables parent Canvas
To reproduce:
1. Download attached project "CanvasBug.zip" and open in Unity
2. Open "MainScene" scene
3. Press "Play" button
Expected result: Coroutine in "SceneController.cs" completes and "Camera" background color changes from red to green
Actual result: "Canvas" GameObject receives OnDisable and OnEnable inside AddComponent<Image>() call on a "Child" child GameObject, Coroutine stops and Camera background color remains red.
Reproduced on Unity 5.6.0p1,2017.1.0b1
Not Reproduced on Unity 5.5.3f1
Regression on Unity 5.6.0b8
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Asset X has no meta file, but it's in an immutable folder. The asset will be ignored.” errors are thrown when importing package with files not listed in package.json's "files" property
- There is no way to adjust the HDR Paper White value of the Unity Editor's interface, making it difficult/uncomfortable for some developers to work on very dark/bright scenes in HDR
- Animator window has a dropdown button that throws “MissingReferenceException” error on a new project when the previous project had a GameObject with an animation
- Animator State name overflows outside the visual box when the State has a long name
- UI Document file remains marked as Dirty after Undoing made changes
This is a duplicate of issue #882791