Skip to content

Errors on Android async code #701

@laniakeadev

Description

@laniakeadev
  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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions