Hi there,
I had this code working last week where I was setting the text on a UILabel using a color variable for the text color like this:
myLabel.text = "["+color+"]"+mytext+"[-]"
but after updating to NGUI 3.0.3 I get this error:
ArgumentOutOfRangeException: startIndex + length > this.length
Parameter name: length
System.String.Substring (Int32 startIndex, Int32 length) (at /Applications/buildAgent/work/c514da0c8183631c/mcs/class/corlib/System/String.cs:356)
NGUIText.WrapText (System.String text, UnityEngine.Font font, Int32 size, FontStyle style, Int32 width, Int32 height, Int32 maxLines, Boolean encoding, System.String& finalText) (at Assets/NGUI/Scripts/Internal/NGUIText.cs:414)
UILabel.ProcessText (Boolean legacyMode) (at Assets/NGUI/Scripts/UI/UILabel.cs:800)
UILabel.ProcessText () (at Assets/NGUI/Scripts/UI/UILabel.cs:762)
UILabel.ProcessAndRequest () (at Assets/NGUI/Scripts/UI/UILabel.cs:296)
I also enabled on the UILabel the ShrinkContent option with Crisp Always.
Does anybody else have the same issue?