Questions tagged [leantween]

LeanTween is an efficient tweening engine for Unity 3D

LeanTween is an efficient tweening engine for Unity 3D developed by Dented Pixel.

15 questions
3
votes
1 answer

LeanTween not doing anything because of timescale 0. What's the work around?

Here's the problem. I set up a scoreboard, and made it so that my leantween would ease in some images (number of stars) on the scoreboard. Here's the code that calls the void: using System.Collections; using System.Collections.Generic; using…
user11369406
3
votes
5 answers

How to fade TextMesh alpha with LeanTween?

I was looking for a way to fade the alpha value of TextMesh-Text in Unity, but I could not finde a solution online nor in the LeanTween Documentation. LeanTween.alphaText() does only work with the normal UI-Text (not TextMesh) LeanTween.alpha()…
Vivien Lynn
  • 345
  • 4
  • 14
1
vote
1 answer

how to keep track of Lean Tween function?

I want to know the time left to complete the animation as I am using unity asset Lean Tween to scale down my time bar, so when 5 seconds are left till the time run out I want to play sound of closing time. I was able to know when the animation is…
Umer Asghar
  • 127
  • 1
  • 2
  • 10
1
vote
1 answer

LeanTween "from-to" value animation

I am using LeanTween as the tween plugin of my Unity Application. But it's frustrating not having a "from-to" type tweening. For an example, I want //Set initial alpha (from 1f) before animation var tempColor = forceRing.color; tempColor.a =…
nipunasudha
  • 2,427
  • 2
  • 21
  • 46
1
vote
2 answers

Unity c# Delay in order for animation to play

I am building a c# unity game and I have encountered some troubles getting my animations to work. I am using LeanTween in order to optain those animations. Here's some of my code: void Alpha() { Destroy(Cubes[aux]); AddCube(aux2,Map[aux]); …
Sebastian
  • 11
  • 1
  • 2
0
votes
0 answers

How to keep Leantween animation alive until server response is handled in Unity

I'm developing a slot game in Unity. For every spin, I send a spin request to server and get the results from server and set final position of symbols on screen. I want to keep wheels rolling till server response is handled. Currently, It rolls in a…
diyapesen
  • 33
  • 2
  • 8
0
votes
1 answer

Unity - How to scroll a scrollbar for a ScrollRect smoothly?

I have a ScrollRect to which I add content to. When it reaches the point where the content is longer than the ScrollRect (ie when the ScrollBar's value changes from 0), I want the ScrollRect to scroll all the way down (I do this by tweening the…
0
votes
1 answer

Unity LeanTween : Android - First animation delayed (UI)

When triggering a UI Animation for the first time it seems to lag for a moment, then runs the animation faster than it should. If I trigger the same animation again, it will run perfectly. This is only happening when executed on an android device,…
nerotech
  • 49
  • 1
  • 7
0
votes
0 answers

LeanTween ending on different times on same element with same time parameter

Im using LeanTween to animate an UI, the show animations works perfectly, but the hide animation is 3 times slower... any idea on what can be causing this? My animation time is 1.5F and menuStartBtn is a RectTransform void ShowStartMenu() { …
Chico3001
  • 1,853
  • 1
  • 22
  • 43
0
votes
1 answer

For loop is moving all objects at once instead of one by one

I am trying to loop a list of objects (Ads) in order to move them one after another to their target position (which is Vector3(0,0,0)). The issue is that they all move at the same time instead of individually. Not sure what I am doing wrong and its…
Don Chico
  • 3
  • 1
0
votes
2 answers

Setting in and out easing separately

When using LeanTween for Unity to move a GameObject, is it possible to set the in and out parts of the easing separately? What I would like to do is: Start off slow. Gradually increase speed from slow to fast. Stop abruptly with no ease at the…
Ben
  • 15,938
  • 19
  • 92
  • 138
0
votes
2 answers

How to change Sprite Image when it reaches 90 degrees?

I say that I am a beginner. I have a question during the project. I'm currently implementing a card-matching game. When I start the game, The image is loaded from the external path (D: / ..). My question is in the code below. public void…
Seongwon-Choi
  • 459
  • 8
  • 24
0
votes
1 answer

Untiy LeanTween easing giving me strange results

I'm using LeanTween engine and all was going well until I tried this: LeanTween.moveY (menuPanel, 1200f, 0.5f) .setEase (LeanTweenType.easeInOutBack); The goal is to have the menu panel move down slightly before shooting up out of the…
dolyth
  • 235
  • 2
  • 11
0
votes
1 answer

How to fade alpha on GameObject using Standard Shader?

How to simply fade a game object that has a Standard shader applied? This is my code. If I switch the shader to Sprites.default it works. public void foo(float val) { _isFade=true; float time=2.0f; float alphaVal=0.0f; …
Bachalo
  • 6,965
  • 27
  • 95
  • 189
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