I have a Problem with itween

i have planned a path with itween path thingy and entered the following coding i have the most modern version of itwenn i believe it is a c sharp ( can’t find hash on keyboard ) i hope that helps but if you need any thing else please ask
---- coding below ----

function Update (){
iTween.MoveTo(gameObject.iTween.Hash(“path”, iTweenPath, GetPath(“Train path one”)));
---- End of coding —
i am reciving the following error messages,

  1. Assets/train path codeing.js(3,9): BCE0005: Unknown identifier: ‘iTween’.

  2. Assets/train path codeing.js(3,54): BCE0005: Unknown identifier: ‘iTweenPath’.

  3. Assets/train path codeing.js(3,66): BCE0005: Unknown identifier: ‘GetPath’.

can you help please

Make sure the iTween files are in a folder called "Plugins" in your project heirachy view.

I have now rebuilt the hole thing from the ground up. i have now got the right language and coded in a c (Hash) file but i am still getting errors when i use the coding from the you tube video, i am still getting more errors so i will show what the scripting and the errors are

using UnityEngine;
using System.Collections;

public class tester : MonoBehaviour {

// Use this for initialization
void Start () {
iTween.MoveTo(GameObject,iTween.Hash("path", iTweenPath.GetPath("testPath1"), "time", 5));

—end of code—

the errors follow

—errors —

  1. Assets/Scripts/tester.cs(8,23): error CS0119: Expression denotes a type', where a variable’, value' or method group’ was expected

  2. Assets/Scripts/tester.cs(8,16): error CS1502: The best overloaded method match for `iTween.MoveTo(UnityEngine.GameObject, System.Collections.Hashtable)’ has some invalid arguments

3.Assets/Scripts/tester.cs(8,16): error CS1503: Argument #1' cannot convert object’ expression to type `UnityEngine.GameObject’
—end of errors—

thanks in advanced

Hi, cmiiw, afaik, JS files are compiled before C# files, iTween library created using c# files, and you call it from JS which your script is compiled when iTween isn’t compiled yet.

in your asset, create folder named “Plugins” because script insides this folder is compiled first with unity…

i got it from here unity script reference