- Home /
Webplayer String length fails?
Probably related to http://answers.unity3d.com/questions/42923/unity-3-1-webplayer-access-method-failed
I'm using Javascript, trying to access .length on a String. In anything else, this works fine. In the web player, it tosses a huge block of error report.
Is this a bug or expected behavior?
Answer by DaveA · Mar 01, 2011 at 02:11 AM
In case anyone else runs into this:
.length is accepted and does not complain and works on most platforms, not web player, even though it builds without complaint. Runtime error.
.Length is also accepted but does run on all platforms.
This is a bug, it should take one or the other, or be consistent anyway.
Your answer
Follow this Question
Related Questions
Detecting Webplayer's errors from Javascript 0 Answers
Unity Getting on my nerves, Selections and starting 0 Answers
Spline Controller (javascript) error 2 Answers
Player not taking any damage 2 Answers
expecting EOF, found 'showOptions' 1 Answer