x


Manipulating JS hashtables on iOS platforms

Let's say I add a GameObject to a hashtable in JS.

When my build target is set to iOS, Unity begins throwing "____ is not a member of 'Object'" script errors whenever I try to directly alter a parameter of this GameObject in the hashtable. To work around this, I have to pull the gameobject to a new var out of the hashtable, alter the parameter, and reinsert it.

Is this the correct procedure, or is there a way to let Unity know that the hashtable element in question is indeed a gameobject and that I should be allowed to alter it's parameters?

more ▼

asked Jun 28 '11 at 01:17 AM

Aubrey Falconer gravatar image

Aubrey Falconer
672 46 54 68

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

1 answer: sort voted first

Ah, I should have been using a Generic Dictionary instead of a HashTable. Cheers for Unity 3!

more ▼

answered Jun 28 '11 at 01:22 AM

Aubrey Falconer gravatar image

Aubrey Falconer
672 46 54 68

(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:

x3571
x852
x58
x31

asked: Jun 28 '11 at 01:17 AM

Seen: 1208 times

Last Updated: Jun 28 '11 at 01:35 AM