Quantcast
Channel: Questions in topic: "moveto"
Viewing all articles
Browse latest Browse all 116

Struggling with iTween moveTo example code

$
0
0
Hi all, Bit embarrassing this one. I want to start using iTween but I can't even get the example code (copied from the PixelPlacement website) to work. Unity makes a number of complaints: (10,42)...Expression denotes a 'type', where a 'variable', 'value' or 'method group' was expected. I've removed 'Vector3' to leave just the variable but then I get... (10,44)... Unexpected symbol ',', expecting ')' That places the expected ')' in the middle of the Vector3 variable and Unity complains again (with good reason). What am I missing here? using UnityEngine; using System.Collections; public class Tester : MonoBehaviour { // Use this for initialization void Start() { iTween.MoveTo(gameObject,(2,0,0),2); } // Update is called once per frame void Update () { } }

Viewing all articles
Browse latest Browse all 116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>