iTween problems.

Hello. I am trying to use iTween, but I have run into some problems. When I try to use this code,I get errors about iTween being an unknown identifier. I put the iTween.cs script into the “Editor” folder in my project files…what is wrong? Thanks

function Start(){iTween.MoveTo(gameObject, iTween.Hash("path", test_path, "speed", 10, "easetype", "linear"));}

The Editor folder is only for Editor scripts (see the Script Compilation section of the Scripting Reference). I put iTween.cs in Standard Assets.

Thanks, that worked. I have run into another problem with iTween. I have beein trying to use the iTween visual path editor. I named the visual path “test_path”(in a text box in the itween visual path code, not the actual object…just like the instructions said), but when I try this code, I get an error about test_path being an unknown identifier, what is wrong?

function Start(){iTween.MoveTo(gameObject, iTween.Hash("path", test_path, "speed", 10, "easetype", "linear"));}

Anyone?

hopefully you figured it out > you put iTween.cs in a folder called Plugins first > if you don’t have a Plugins folder, make one :slight_smile: that way iTween will work with js scripts also and not just cs scripts

check it out here on how to start using iTween :
http://itween.pixelplacement.com/gettingstarted.php