Cysharp/UniTask

OnEndTextSelectionAsAsyncEnumerable The requested operation caused a stack overflow.

xfvvvv opened this issue · 0 comments

When using "onTextSelection" or "onEndTextSelection" , recursive calls will occur, eventually leading to stack overflow.

        m_InputField.OnEndTextSelectionAsAsyncEnumerable().ForEachAwaitAsync(async (x) =>
        {
            // This method is never called..
            await UniTask.Delay(1);
        });

This problem occurs on 2.5.4