- Home /
Changing scripts from old iTween to Path Editor
I've been attempting to get my head around how iTween interfaces with Unity and have hit a wall. Looking through the examples Mr. Berkebile posted, I can see how things are supposed to work, but I can't for the life of me figure out how to make them work with the visual path editor Essentially, what I'd like to do is convert those effects from the old format (paths made up of many game objects) to the new (paths attached to any game object, called in their entirety by name). I'm pretty new to scripting, so please forgive me any glaring oversights.
To define a given path, this is how it's written without the visual path editor:
public var controlPath : Transform[];
You set an array value in the editor, which provides the appropriate number of path point slots, which you can then assign to game objects. Easy enough.
But no matter how I try to tweak that Transform[] into some variation of iTween.GetPath("PathName"), it all falls apart. There's nothing later on in the script that refers specifically to the arrayed values, instead relying on pathPercent, which seems like it would fit nicely with the visual editor. Yet I can't make it so.
Thank you in advance for your insight and knowledge.