Adjust size of tooltip text on the fly

Hello,

I’m working on a character screen which has a tooltip at the bottom to explain the functions of the various buttons and labels. Most of the descriptions are short, but others extend to two lines. Does anyone know of a simple way to adjust the size of the text. Tried the various options in the tooltip style (wrap, clip, overflow). Reducing the overall text size is a passable solution, but it leaves a lot of empty space in the single line descriptions. Anyone know of a more elegant solution?

Thanks for reading.

1 Answer

1

Use a custom GUIStyle for the tooltip, and change the style’s fontSize as needed.

Thanks Eric