I am currently messing up with some customized text view stuff. As the above picture indicates, i added a content size filter to the text, so that it would resize with it’s content, this works fine.
But now in my code, i want to access its derived height, i.e the grayed number 30.6…
normally with a RectTransform , i just need to use .rect.height to get its height, but as in
this case, it always return 0. Does anyone know how to get the height in this case
Moving this to the UI section.
I reported this bug several months (case 721282) ago which Unity has confirmed and been able to reproduce but I am still waiting for this to get fixed.