- Home /
Question by
Woj_Gabel_FertileSky · Dec 14, 2011 at 05:19 PM ·
itweenmovetoorienttopath
iTween syntax error? orienttopath with moveto
Hi! I have a problem with this code:
iTween.MoveTo(gameObject, iTween.Hash("path", iTweenPath.GetPath("whalePath1"), "time",50, "loopType", "loop", "easetype", "linear", "orienttopath", "true"));
script contains only this line. The problem occures only when i add "orienttopath", "true" part. Changing default value of orienttopatch in itween.cs to true does nothing. The script(c#) is attached to simple cube object. The error: Cannot cast from source type to destination type. This error redirects to line in iTween.cs.
So, is that maybe an iTween bug? Anyone had similar problem?
My iTween is version above 2.0(the version without movetobezier, i think its the latest one.)
Comment
Best Answer
Answer by sanchezelton · May 30, 2012 at 05:23 PM
A little late to answer, but for those searching, the value type is wrong. "orienttopath" should be be followed by the boolean true, not the string "true".