x


What is the language construct iTween use to create commands?

iTween.MoveTo(gameObject,{"path":path,"time":mySpeed,"orienttopath":true,"looktime":.6,"easetype":"easeInOutSine","oncomplete":"complete"});

As I am a buddying UnityScript writer, I am wondering what the following snippet of the above code is:

{"path":path,"time":mySpeed,"orienttopath":true,"looktime": .6,"easetype":"easeInOutSine","oncomplete":"complete"}

Is it some kind of delegate? Some sort of array? How can I make use of something similar?

It's puzzling to me. It looks like an array, but arrays use [ ] brackets, right?

more ▼

asked Apr 03 '11 at 12:15 AM

Statement gravatar image

Statement ♦♦
20.2k 35 71 176

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

1 answer: sort voted first

It's javascript's way of doing a hashtable

more ▼

answered Apr 03 '11 at 12:36 AM

Mike 3 gravatar image

Mike 3
30.6k 10 67 254

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

x435
x110
x74

asked: Apr 03 '11 at 12:15 AM

Seen: 1025 times

Last Updated: Apr 03 '11 at 12:15 AM