- Home /
 
Changing a childs Orientation with iTween
Hello
Is it possible to make an iTween Command affect a child in an object, as in, you have the script on the parent and tell the child through that script that it should move to a location.
kinda like this, it is taken from the unity documentation:
using UnityEngine; using System.Collections;
 
               public class example : MonoBehaviour { void Awake() { transform.Find("Hand").Translate(0, 1, 0); } } 
 
               
               I have been through the iTween documentation, and i havnt been able to find anything of use.
Thanks in advance
Seth
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by pixelplacement · Feb 18, 2011 at 06:49 PM
Sure, just make a reference to whatever you want to animate:
hand = GameObject.Find("Hand"); iTween.MoveBy(hand, new Vector3(2,0,0), 1);
Your answer