Hello!
As of a few hours back in my project, out of the blue. started experiencing a really weird issue where parts of the UI text and image components completely break down.
For some reason, at runtime, the rules of pivot in the RectTransform component no longer applies as demonstrated in this image below.
As you can see, the pivot is set to 0.5/0.5 and the alignment settings should cause the text to center in the middle of the box, but it does not. A negative correction of random values such as -0.1/0.8 will “center” the text but that just goes to show that something is really wrong here. I have a few UI prefabs where this occurs, causing all text components to become wildly off-set and also, for some reason, Image components fail to render resulting in the prefab background becoming transparent.
If a new GameObject at runtime is created, with a correctly centered text component, and is dropped into the parent of the failing game object, the dropped game object becomes “infected” and the text appears off center despite a centered pivot.
I have no idea whatsoever as to what is causing this and have tried searching the webs, reinstalling Unity and regenerating the project library. Has anyone else experienced this? Is it a bug? Is there some sort of global setting that I’ve managed to change?
Thanks.
