x


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?

more ▼

asked Mar 01 '11 at 02:06 AM

DaveA gravatar image

DaveA
26.5k 151 171 256

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Mar 01 '11 at 02:11 AM

DaveA gravatar image

DaveA
26.5k 151 171 256

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3465
x1952
x815
x420
x56

asked: Mar 01 '11 at 02:06 AM

Seen: 1310 times

Last Updated: Mar 01 '11 at 02:06 AM