Search Issue Tracker
Fixed in 2022.2.13f1
Fixed in 2022.2.X, 2023.1.X, 2023.1.0b10, 2023.2.X
Votes
1
Found in
2022.1.23f1
2022.2.0b15
2023.1.0a19
Issue ID
UUM-21605
Regression
No
Error "MissingComponentException" is thrown when clicking on Prefab with CanvasRenderer component
How to reproduce:
1. Open the user's attached project "IN_21874"
2. In Assets press -> "Prefabs" -> "Network" -> "Player" prefab
3. Observe the Console
Expected result: no errors
Actual result: errors
Reproducible with: 2022.1.23f1, 2022.2.0b15, 2023.1.0a19
Couldn't test with: 2020.3.42f1, 2021.3.14f1 (due to compiler errors when downgrading)
Reproducible on: Windows 10 Pro
Full error: [Worker0] MissingComponentException: There is no 'CanvasRenderer' attached to the "healthMask" game object, but a script is trying to access it.
You probably need to add a CanvasRenderer to the game object "healthMask". Or your script needs to check if the component is attached before using it.
UnityEngine.UI.Mask.OnDisable () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Mask.cs:99)
UnityEditor.AssetPreviewUpdater:CreatePreviewForAsset(Object, Object[], String)
Note: “CanvasRenderer” is attached to a “healthMask” GameObject
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- A gap at the bottom of the screen appears when entering Play mode in full screen
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Group Selection title text size is smaller in renaming than the actual font size
- Rich Text is not correctly highlighted when searching through Debug Logs in the Console window
Add comment