Questions tagged [itween]

iTween is a free open-source animation system for Unity3D.

29 questions
3
votes
2 answers

Constant speed issue in defining iTween path

I've designed a curved path like the below figure. The cube move along the path from the left side to the right side of scene by this line of code: iTween.MoveTo(gameObject,iTween.Hash("oncomplete","destroying","orienttopath", true,…
user1021110
  • 213
  • 1
  • 6
  • 13
2
votes
1 answer

How to Instantiate an object onto a path in Unity

I am recently new to c# and I need some help. Essentially I have two scripts, one for spawning objects and one for moving an object along a path. I need a way to combine these two mechanics so that when a new object is instantiated it automatically…
Thrillasel
  • 33
  • 6
2
votes
0 answers

iTween not working with Rigidbody

iTween works fine for version 2017.2.0f3 and under but when I update to 2017.2.0f3 unity version, there are problems. iTween.MoveBy(gameObject, iTween.Hash("x", -1, "easeType", "spring", "speed", 3, "onstart", "controllerStarted", "oncomplete",…
erim kurt
  • 91
  • 6
2
votes
0 answers

Unity5 - Unwanted object rotation (flip) using iTween Path

I am trying to make a mobile game that consist on a character travelling in a 3d ambient (think about endless runner but you wont only run straight forward you can go down, up right left and have 180º curves) also instead of have only left and right…
2
votes
0 answers

Unity3D 5.0 + iTween + NGUI :: Trouble Using iTween.ValueTo

The call backs aren't being fired, can't see what's wrong, I bought the $5 pack of samples and as far as I can tell I'm following their pattern properly. I've used this before successfully. So in this class below a particular button has been either…
Dela Torre
  • 51
  • 8
2
votes
1 answer

Combine iTween with physics acceleration

I am trying to combine iTween with physics acceleration. Here is the top view of the path. The brown rectangle is made by a cube GameObject, with an iTweenPath component attached (4 nodes). The path is named Path1. On the left, there is a sphere…
Raptor
  • 53,206
  • 45
  • 230
  • 366
2
votes
2 answers

How to control an animation by touch position along a path in Unity3D?

I have a GameObject that I want to animate along a specific path/curve, but the animation should be controlled by mouse/touch position. So when I touch/click on the GameObject and move the finger/mouse on/near the path (or maybe its easier to just…
headkit
  • 3,307
  • 4
  • 53
  • 99
1
vote
2 answers

How to use oncompleteparams in Unity iTween plugin?

I have code: iTween.MoveTo( gameObject, iTween.Hash("x",_x,"z",_y, "time", 2.0f, "easetype", iTween.EaseType.easeInExpo, "oncomplete", "afterPlayerMove", "oncompleteparams", iTween.Hash("value", _fieldIndex) )); but I don't know how to use…
redflasher
  • 677
  • 9
  • 17
1
vote
1 answer

Why itween animations seem to take more time than declared and prevent delayed Destroy()

I have this code: void OnCollisionEnter (Collision collision) { if (canCollide == true) { canCollide = false; ContactPoint contactPoint = collision.contacts [0]; GameObject cube = GameObject.CreatePrimitive…
Łukasz Motyczka
  • 1,169
  • 2
  • 13
  • 35
1
vote
4 answers

unity5 - iTween Null Reference

I use iTween a lot and it was OK for most of the time until yesterday, I am getting and error suddenly: NullReferenceException: Object reference not set to an instance of an object iTween.RetrieveArgs () (at…
sooon
  • 4,718
  • 8
  • 63
  • 116
1
vote
1 answer

iTween.FadeTo not working with NGUI Sprite

I am trying to make fade out effect in Sprite of NGUI using iTween.FadeTo but not working. like that: iTween.FadeTo(gOFlag, iTween.Hash("alpha",1.0f,"time",6f)); Am i doing something wrong if yes please let me know.
Pawan Chaurasiya
  • 881
  • 2
  • 16
  • 30
1
vote
2 answers

Unity3D Tween library that uses C# delegates

Is there a Unity3D tween library that uses C# delegates? I've been using iTween and LeanTween, but instead of delegates they require method names to call in form of strings, which results in quite ugly code. I'd like to replace all the custom…
Max Yankov
  • 12,551
  • 12
  • 67
  • 135
0
votes
0 answers

Why my oncomplete method is called after 1-2 second in itween.moveto() function

Here is the code portion. public void Move(Transform SelectedTarget) { target.transform.LookAt(base.transform.position); base.transform.LookAt(SelectedTarget.transform.position); anim.SetTrigger("Move"); …
0
votes
1 answer

Instantiated object doesn't follow iTween path, how do I fix this?

So essentially I've: Instantiated a new prefab of an object Set all the variables in the transform of the prefab Copied the script for the initial capsule (which works) into the prefab spawning script And yet my prefabs for some reason really…
Thrillasel
  • 33
  • 6
0
votes
1 answer

Destroy Object and Instansiate it in the middle of Canvas

I have a character that I can drag and drop around the canvas. If you drag it onto a square, it dissappears. All of that works well, however I want to Instansiate a clone of that character in the middle of the canvas again once it has been…
Chud37
  • 4,907
  • 13
  • 64
  • 116
1
2