dotween icon indicating copy to clipboard operation
dotween copied to clipboard

Errors on Android async code

Open laniakeadev opened this issue 1 year ago • 0 comments

  1. Version Unity 6.24f1
  2. DoTween 1.2.632, UniTask, both are added in asmdef
  3. After switching on android, drops errors:

await rect.DOAnchorPosX(-targetX, 0f)

The type 'DG. Tweening. Core. TweenerCore<UnityEngine. Vector2,UnityEngine. Vector2,DG. Tweening. Plugins. Options. VectorOptions>' must be convertible to 'System. Collections. IEnumerator' in order to use it as parameter 'T' in the generic method 'Awaiter Cysharp. Threading. Tasks. EnumeratorAsyncExtensions. GetAwaiter<T>(this T)'


await rect.DOAnchorPosX(-targetX, 0.5f).WithCancellation(ctsClose.Token);

error CS1929: 'TweenerCore<Vector2, Vector2, VectorOptions>' does not contain a definition for 'WithCancellation' and the best extension method overload 'AddressablesAsyncExtensions.WithCancellation(AsyncOperationHandle, CancellationToken)' requires a receiver of type 'AsyncOperationHandle'

laniakeadev avatar Jan 25 '25 19:01 laniakeadev