it works if I set the text value in inspector, but not in code, the horizontal overflow either wraps (if overflow is set to Wrap) or overflows (if overflow is set to Overflow), and the font size never scales to fit without wrapping nor overflow
Horizontal overflow is set to Overflow in code, but is set to Wrap in inspector Vertical overflow is set to Truncate Best Fit is checked, Min Size = 10, Max Size = 40
any help greatly appreciated
[Edit below, added code and screenshot of Inspector settings for text component]
dataText.horizontalOverflow = HorizontalWrapMode.Overflow;
dataText.horizontalOverflow = HorizontalWrapMode.Wrap;
dataText.text = " My Blablablablablatext---->>>>>>:\n______________________________________\n";
dataText += ">>>>>>>>and some more text"
dataText.resizeTextForBestFit = false;//Just added this to test, see if reseting would help, it didn't
dataText.resizeTextForBestFit = true;//Just added this to test, see if reseting would help, it didn't