Unity LeanTween : Android - First animation delayed (UI)

450 Views Asked by At

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, it runs fine when testing in Unity.

Any ideas?

Here's an example of transforming one of my option windows.

[SerializeField]
private GameObject _newPlayerWindow;

public void test() {
      _newPlayerWindow.LeanMoveLocalY(0.0f, 1.0f).setEaseOutBounce();
}
1

There are 1 best solutions below

0
nerotech On

For any future readers that have this issue. I switched the Scripting Backend from Mono to IL2CPP in the player settings, now everything runs perfectly first time.