
Instructions+$animateIn$18+$.MoveNext () (at Assets/Scripts/MyScriptFile.js:42) UIText.ctor (.UIToolkit manager, System.String fontFilename, System.String textureFilename) (at Assets/Plugins/UIToolkit/UIElements/UIText.cs:86)

UIText.loadConfigfile (System.String filename) (at Assets/Plugins/UIToolkit/UIElements/UIText.cs:135) IndexOutOfRangeException: Array index is out of range. Var font1Txt:UIText = new UIText( textToolkit, "interstatereg", "interstatereg2x.png" ) Var myText = font1.addTextInstance( "SCORE 0", 0.0f, 0.0f, 0.6f, 0, new Color( 0.69f, 0.93f, 0.01f), UITextAlignMode.Center, UITextVerticalAlignMode.Middle ) There are sites that already have this conversion for you, like this one. tColorForAllLetters( (Color)cGreen ) Ĭonvert the R, G and B to individual Percentage values Tried a bunch of variations and they didn’t work: Using R,G,B values as params for Color class’ constructor Var myText = font1.addTextInstance( "SCORE 0", 0.0f, 0.0f, 0.6f, 0, een, UITextAlignMode.Center, UITextVerticalAlignMode.Middle ) Var font1 = new UIText( textToolkit, "arialregular", "arialregular.png" ) PSD file.īasic UIToolkit text set up (assuming the UI and UIToolkit objects are properly set up in the Hierarchy & Inspector): Using Color.red or een is quick and easy in a lot of cases, but if you’re working with a Designer, you often have to choose a more customized color value based on what’s in a.
