You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm an everyday user of LeanTween in my projects. I noticed a weird bug. It appears that some LT commands glitch heavily when using .setIgnoreTimeScale(false). Of course, you may not use it, but it's important to report.
I opened a brand new project, added a simple TextMeshPro object to an Overlay Canvas. I added a CanvasGroup to it. The following does not work. If I comment out the .setIgnoreTimeScale line, it works.
`
public class LeanTweenTest : MonoBehaviour
{
[SerializeField] private CanvasGroup canvasGroup = default;
[SerializeField] private float duration = 0.15f;
[SerializeField] private float startingAlpha = 0f;
[SerializeField] private float targetAlpha = 1f;
[SerializeField] private bool ignoreTimeScale = false;
For anyone else having this issue, in LtDescr.cs, this is caused by the setIgnoreTimeScaleMethod setting this.usesNormalDt to false instead of !useUnscaledTime. It should be:
the same issue appears in the setUseEstimatedTime, and setUseFrames, and setUseManualtime which also automatically sets this.usesNormalDt = false instead of the appropriate value given the passed in parameter.
Hello. I'm an everyday user of LeanTween in my projects. I noticed a weird bug. It appears that some LT commands glitch heavily when using .setIgnoreTimeScale(false). Of course, you may not use it, but it's important to report.
I opened a brand new project, added a simple TextMeshPro object to an Overlay Canvas. I added a CanvasGroup to it. The following does not work. If I comment out the .setIgnoreTimeScale line, it works.
`
public class LeanTweenTest : MonoBehaviour
{
[SerializeField] private CanvasGroup canvasGroup = default;
[SerializeField] private float duration = 0.15f;
[SerializeField] private float startingAlpha = 0f;
[SerializeField] private float targetAlpha = 1f;
[SerializeField] private bool ignoreTimeScale = false;
}
`
Of course, I will work around it for now, but I thought it was worth pointing out.
This was tested on an URP project in Unity 2020.3.13f1.
The text was updated successfully, but these errors were encountered: