Ejemplo n.º 1
0
 public static IAsyncTextSelectionEventHandler <(string, int, int)> GetAsyncTextSelectionEventHandler(this TMP_InputField inputField)
 {
     return(new AsyncUnityEventHandler <(string, int, int)>(new TextSelectionEventConverter(inputField.onTextSelection), inputField.GetCancellationTokenOnDestroy(), false));
 }
Ejemplo n.º 2
0
 public static IAsyncValueChangedEventHandler <string> GetAsyncValueChangedEventHandler(this TMP_InputField inputField)
 {
     return(new AsyncUnityEventHandler <string>(inputField.onValueChanged, inputField.GetCancellationTokenOnDestroy(), false));
 }
Ejemplo n.º 3
0
 public static IUniTaskAsyncEnumerable <(string, int, int)> OnEndTextSelectionAsAsyncEnumerable(this TMP_InputField inputField)
 {
     return(new UnityEventHandlerAsyncEnumerable <(string, int, int)>(new TextSelectionEventConverter(inputField.onEndTextSelection), inputField.GetCancellationTokenOnDestroy()));
 }
Ejemplo n.º 4
0
 public static UniTask <(string, int, int)> OnEndTextSelectionAsync(this TMP_InputField inputField)
 {
     return(new AsyncUnityEventHandler <(string, int, int)>(new TextSelectionEventConverter(inputField.onEndTextSelection), inputField.GetCancellationTokenOnDestroy(), true).OnInvokeAsync());
 }
Ejemplo n.º 5
0
 public static IUniTaskAsyncEnumerable <string> OnEndEditAsAsyncEnumerable(this TMP_InputField inputField)
 {
     return(new UnityEventHandlerAsyncEnumerable <string>(inputField.onEndEdit, inputField.GetCancellationTokenOnDestroy()));
 }
Ejemplo n.º 6
0
 public static UniTask <string> OnEndEditAsync(this TMP_InputField inputField)
 {
     return(new AsyncUnityEventHandler <string>(inputField.onEndEdit, inputField.GetCancellationTokenOnDestroy(), true).OnInvokeAsync());
 }