Questions tagged [itween]

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

29 questions
0
votes
1 answer

Unity - convert Quaternion.LookAt to eulerangles?

Ok Im trying to rotate an object using iTween RotateTo only on 1 axis, so I have the following: iTween.RotateTo(this.gameObject,iTween.Hash( "x", this.gameObject.transform.eulerAngles.x+90, …
UserDude
  • 323
  • 1
  • 3
  • 18
0
votes
2 answers

Unity UI Elements Move Animation Using iTween

I was using iTween for giving animation to each main menu elements. But animation not get played as per desire thinking, something different is running so I become confused about this for a solution. I want to play game title, move animation from…
Siddharth
  • 4,142
  • 9
  • 44
  • 90
0
votes
0 answers

How do I make the iTween plugin work with Unity 2018?

I got iTween from the asset store to Unity 2018. iTween included sample code and sample scenes of the content where the cube object moves left and right. And this worked fine. I made a new project, made a cube object with the same structure as the…
Storch W
  • 23
  • 4
0
votes
1 answer

Why does not onupdate run on iTween?

I'm implementing a card-matching game. The event will be sent after the card is first deployed. public void cardFlipStateUpdate() { foreach (Card card in cardAllInformation[current_pageNumber]) { GameObject card_gameObj =…
Seongwon-Choi
  • 459
  • 8
  • 24
0
votes
1 answer

Destroy gameObject oncomplete

I am using this script to destroy a gameObject oncomplete, but it doesn't work. void Jump() { if (currentCube.transform.position.y == 0f) { iTween.MoveTo (currentCube, iTween.Hash ("y", currentCube.transform.position.y - 15f,…
J.K. Harthoorn
  • 218
  • 1
  • 3
  • 19
0
votes
1 answer

Unity, C#, and iTween

I have a script which makes an object rotate when you click on it. I would like to see if adding iTween to it would improve the motion, but where should I add it? iTween code: iTween.RotateBy(gameObject, iTween.Hash("x", .25, "easeType",…
0
votes
0 answers

Unity - Object stops moving when colliding with player

This problem is a bit hard to explain and maybe confusing, but I will try my best to explain it. I use iTween for the movement of the cubes in my game. When the player collides with the activating cube / is a child of the activating cube, the cube…
Jip Harthoorn
  • 292
  • 1
  • 8
  • 25
0
votes
1 answer

UE4 iTween C++ throws "this was nullptr"

I'm trying to use iTween (via C++, not BP) to rotate an actor to face another, but it throwing an exception in Actor.h that says: I'm using the following code to start the tween: AActor* actorToRotate = Cast(this); if (actorToRotate !=…
John Tiggernaught
  • 758
  • 1
  • 6
  • 25
0
votes
1 answer

Follow a path with Rotation

I am trying to move a gameobject with a defined path. I have used iTweenpath and successfully implemented it, but the problem is when I choose a curve path my gameobject do not rotate according to path. My project is 2d so only Z axis will work for…
vanshika
  • 411
  • 1
  • 6
  • 20
0
votes
1 answer

Unity3D: iTween oncomplete not working

I am working on a Unity2 game, and I want to make Boom disappear in the end of iTween animation. Here is part of code void OnMouseDown() { if (ChosePosition == false) ChosePosition = true; // make Star stop else if…
rj487
  • 4,476
  • 6
  • 47
  • 88
0
votes
1 answer

Unity3D: How to instantiate a new GameObject and manipulate it

I'm working on a 2D Unity game, and I want to create a Boom in run time and move it. Here is part of my code. I create a prefab Boom, and I drop it into inspector. public GameObject Boom; // prefab Boom is drop here void OnMouseDown() { ... …
rj487
  • 4,476
  • 6
  • 47
  • 88
0
votes
2 answers

Animating scale causes halting motion with Rigidbody2D and interpolate in gravity

I ran into an issue using a scale animation on an object with a rigidbody. This problem happens with both LeanTween and iTween. The animation runs every second for a third of a second, and while the rigidbody is moving under the force of gravity the…
Scott A
  • 7,745
  • 3
  • 33
  • 46
0
votes
3 answers

How to transform world position to local position in unity 3d for itween

I am struggling in problem that convert world position in local position. i am using iTween plugin in unity. And there is an argument of position in iTween which is take world position and but i want to use local position in pixel to move the object…
Pawan Chaurasiya
  • 881
  • 2
  • 16
  • 30
-1
votes
1 answer

iTween.fadeTo() is not fading objects away

I am trying to make an object slowly fade away and then get destroyed. I have been using iTween.fadeTo function to achieve the desired behavior. However, after the assigned time to finish the fadeTo() function, the object gets destroyed without…
1
2