- Home /
Question by
zefrof · Dec 13, 2013 at 06:20 PM ·
c#movementinstantiatemoveto
Using moveto after instantiate?
I'm trying to have an instantiated object follow a moveto command after being instantiated.
Note: I'll add my code later since I'm not at home right now, if anybody has any ideas until then it's appreciated.
Comment
Best Answer
Answer by zefrof · Dec 28, 2013 at 06:13 PM
Ended up giving the object that needed to use moveto its own script.
Answer by dvidunis · Dec 13, 2013 at 08:43 PM
First, When you instantiate the object, do this:
var theObject:GameObject = instantiate(stuff);
then you have a GameObject to work with.
(Assuming moveto is from iTween...)
iTween.MoveTo(theObject,moreStuff);
Your answer
Follow this Question
Related Questions
Making a bubble level (not a game but work tool) 1 Answer
Networking Synchronize Problem. 0 Answers
Clone of prefabs copy original´s script state during runtime? 0 Answers
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer