Search Issue Tracker
By Design
Votes
0
Found in
2020.1.0a15
2020.3
2021.1
2021.1.23f1
2021.2
2022.1
Issue ID
1371304
Regression
Yes
CanvasRenderer Component isn't created on a Canvas child GameObject when adding a script with OnPopulateMesh
How to reproduce:
1. Open the attached project "bugRepro"
2. Open the Scene "SampleScene" (Assets/Scenes/SampleScene.unity)
3. In the Hierarchy window, expand the children of "Canvas" and select the GameObject "Buggy"
4. In the Inspector window, add the Script "BevelBox" (Assets/BevelBox.cs)
Expected result: A CanvasRenderer Component is added to the GameObject
Actual result: The CanvasRenderer Component is not added to the GameObject
Reproducible with: 2020.1.0a15, 2020.1.17f1, 2020.3.20f1, 2021.1.25f1, 2021.2.0b15, 2022.1.0a12
Not reproducible with: 2019.4.31f1, 2020.1.0a14
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
- The Particle System Trail module creates Trails with a lighter coloring than the particles when the Color Space is set to Linear
- Crash on "DynamicBranchState::PrepareState" when entering the Play Mode with a shader variant collection that has a shader with a "dynamic_branch" keyword
- Crash on "in __pthread_kill" when running the built application that has UNITY_EDITOR scripting symbol in conditional compilation
- Fix for 2022.3.X: Flickering of HDRP Directional Light shadows with DirectionalMixedCachedShadows when in an Entities Graphics rendered Subscene
- "Objects are trying to be loaded during a domain backup." errors on entering Playmode
Resolution Note (2022.1.X):
the RequiredComponent is no longer on the Graphic but on its derived classes. This is needed to support other use cases such as TMP.