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
public static LTDescr delayedCall( float delayTime, Action callback)
When I use this one, after a while I get an error which says LeanTween tween limit exceeded. When we call this, it uses the gameObject that created by leantween.
public static LTDescr delayedCall( GameObject gameObject, float delayTime, Action callback)
When I try this one, It works fine. No errors.
I followed the code but there is only one difference and that is the gameObject reference as far as I understand. Am I missing something or is there a bug here?
The text was updated successfully, but these errors were encountered:
Code With limit Exceeded Error
LTDescr descr = LeanTween.delayedCall(delay, () => { LeanTween.rotateAround(rect, Vector3.forward, 20, .2f) .setEase(curve) .setOnComplete(() => rect.localRotation = Quaternion.identity ); }).setRepeat(-1);
Code without any errors
LTDescr descr = LeanTween.delayedCall(rect.gameObject, delay, () => { LeanTween.rotateAround(rect, Vector3.forward, 20, .2f) .setEase(curve) .setOnComplete(() => rect.localRotation = Quaternion.identity ); }).setRepeat(-1);
public static LTDescr delayedCall( float delayTime, Action callback)
When I use this one, after a while I get an error which says LeanTween tween limit exceeded. When we call this, it uses the gameObject that created by leantween.
public static LTDescr delayedCall( GameObject gameObject, float delayTime, Action callback)
When I try this one, It works fine. No errors.
I followed the code but there is only one difference and that is the gameObject reference as far as I understand. Am I missing something or is there a bug here?
The text was updated successfully, but these errors were encountered: