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

iTween movetopath

$
0
0
Hello People. I am using iTween to make a path for my camera to follow. All good, but there are times when I want to have a switch (mouseUp an object) that will make the camera move to a new path (path b)... Scripting reference says : MoveTo(GameObject target, Vector3 position, float time) but I am putting this script on another object, not the Camera. using UnityEngine; using System.Collections; public class iTweenMoveTo : MonoBehaviour { public GameObject myPath; void OnMouseUp (){ iTween.MoveTo(Camera, iTween.Hash("myPath", iTweenPath, "time", 1)); } } I'm just screwed up on the C#...Any one have a clue? Thanks ~be

Viewing all articles
Browse latest Browse all 116

Trending Articles



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