I’m sure this is an understood situation that I’m new to.
I updated to 2020.1 and want to get rid of some code in a script I otherwise shouldn’t be meddling with - TMPro_Private.cs
I delete the Debug statement that says this, “Removing unnecessary CanvasRenderer component from text object.”
But when I play in unity, the deleted code literally returns in Visual Studio.
One clue? – In visual studio, I ‘moved’ it into “Assembly-CSharp” and now dozens of functions and variables have the red jagged line under them, even though it I get no errors in the console, and the game runs fine.
I’ve updated to 2020.1 and TMPro package to 3.0 but this debug statement floods my console every time I enter a level. And I can’t remove CanvasRenderer from my GameObjects.
I get this too, after updating unity. Prefabs with TMPro elements have a parent ‘canvas renderer’ object inside them, that isn’t necessary in my case (because it’s the type of TMPro object that renders in the game world, not inside the UI canvas).
I got rid of it by fiddling around a bit with the assets, I’m not sure how but after instancing/deleting the assets and clicking around some more, the canvas renderer parent object disappeared, as well as the debug messages. Hope you get this to work too…