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…
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()…
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…
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 =…
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]);
…
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…
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…
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,…
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()
{
…
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…
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…
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…
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…
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;
…
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…