Just to clarify: it’s been a while since I’ve worked with Unity, so some of my ‘knowledge’ might be outdated!
I’ve got a Text object inside a panel, where the Text object stretches over the whole width and height of its parent panel. I want the content of the Text object to fade in word-by-word (not letter-by-letter).
This can (obviously?) not be achieved with just one Text object, since there’s just one alpha channel to work with (which controls the whole content). Thus I’ve come to the conclusion that I’d need two Text objects, where one object (the one inside the panel) contains all the text already displayed and the other one being used to display one word, fade it in, when faded in added to the first Text object content and repeating that process.
For this second Text object to be placed correctly, however, I’d need to get the width of the text that is already visible. I’ve got a hunch on how I’d get these values (via a ContentSizeFitter component?) but I’m absolutely uncertain if that’d work at all (I’ve been fiddling around with it for a bit and to no avail… yet).
The Text object containing all text does not scale with the content of it, so I cannot get the width/height of the Text object itself to process.
If you’ve got any idea or suggestion (or question, of course) as to how to go about this, I’d love you to the moon and back!
Cheers.