On Gui...
The problem is, I never see "Blank test 3". I've only seen one other similar problem to this, and his solution didn't work out for me. I have to assume it's human error in the code, some where, but I don't know where I went wrong.
(comments are locked)
|
|
The code you posted works for me without modification, using the default skin, running in the Game View in the Unity 3.0 editor. It appears some external factor is contributing to your problem (version of Unity, GUI skin, screen size, platform, or surrounding code that you did not include in your question.) Okay, this must be a bug with unity, in some manner. I opened up Unity to take a look at the code to see if it "magically works". It didnt. Same error. But, then I commented it out to look at the box that's behind it etc, then uncommented it. Still the same problem. Then, I changed it to two columns, and it worked. Back to one column, still working. Very weird. I didn't change anything else, at all. At the very least, thanks for getting me to look at it again.
Oct 23 '10 at 05:34 AM
FreeTimeDev
That is strange. The only thing I can think of is if the string array was a public variable of your component, exposed in the Inspector. In the Inspector you might have accidentally reduced the length by one. That change would "stick"- the array initialization in code wouldn't apply until you made other changes such as changing the name of the array or declared it private.
Oct 24 '10 at 02:25 PM
Bampf
(comments are locked)
|
