Show / Hide Table of Contents

Class UnityEventExtensionMethods

Inheritance
System.Object
UnityEventExtensionMethods
Namespace: GameplayAbilitySystem.ExtensionMethods
Assembly: Assembly-CSharp-firstpass.dll
Syntax
public static class UnityEventExtensionMethods : object

Methods

| Improve this Doc View Source

WaitForEvent(UnityEvent, CancellationToken)

Waits for event to execute, then returns.

Declaration
public static Task WaitForEvent(this UnityEvent evt, CancellationToken cts = null)
Parameters
Type Name Description
UnityEvent evt
CancellationToken cts
Returns
Type Description
Task

Task

| Improve this Doc View Source

WaitForEvent<T>(UnityEvent<T>, Func<T, Boolean>, CancellationToken)

Waits for event to execute, then returns when T returned by event matches the comparer.

Declaration
public static Task<T> WaitForEvent<T>(this UnityEvent<T> evt, Func<T, bool> compareFunc, CancellationToken cts = null)
Parameters
Type Name Description
UnityEvent<T> evt

UnityEvent to wait for

Func<T, System.Boolean> compareFunc

Function to define how to compare the returned value from the Event to some other value

CancellationToken cts
Returns
Type Description
Task<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

WaitForEvent<T1, T2>(UnityEvent<T1, T2>, Func<T1, T2, Boolean>, CancellationToken)

Declaration
public static Task<(T1 T1, T2 T2)> WaitForEvent<T1, T2>(this UnityEvent<T1, T2> evt, Func<T1, T2, bool> compareFunc, CancellationToken cts = null)
Parameters
Type Name Description
UnityEvent<T1, T2> evt
Func<T1, T2, System.Boolean> compareFunc
CancellationToken cts
Returns
Type Description
Task<System.ValueTuple<T1, T2>>
Type Parameters
Name Description
T1
T2
| Improve this Doc View Source

WaitForEvent<T1, T2, T3>(UnityEvent<T1, T2, T3>, Func<T1, T2, T3, Boolean>, CancellationToken)

Declaration
public static Task<(T1 T1, T2 T2, T3 T3)> WaitForEvent<T1, T2, T3>(this UnityEvent<T1, T2, T3> evt, Func<T1, T2, T3, bool> compareFunc, CancellationToken cts = null)
Parameters
Type Name Description
UnityEvent<T1, T2, T3> evt
Func<T1, T2, T3, System.Boolean> compareFunc
CancellationToken cts
Returns
Type Description
Task<System.ValueTuple<T1, T2, T3>>
Type Parameters
Name Description
T1
T2
T3
| Improve this Doc View Source

WaitForEvent<T1, T2, T3, T4>(UnityEvent<T1, T2, T3, T4>, Func<T1, T2, T3, T4, Boolean>, CancellationToken)

Declaration
public static Task<(T1 T1, T2 T2, T3 T3, T4 T4)> WaitForEvent<T1, T2, T3, T4>(this UnityEvent<T1, T2, T3, T4> evt, Func<T1, T2, T3, T4, bool> compareFunc, CancellationToken cts = null)
Parameters
Type Name Description
UnityEvent<T1, T2, T3, T4> evt
Func<T1, T2, T3, T4, System.Boolean> compareFunc
CancellationToken cts
Returns
Type Description
Task<System.ValueTuple<T1, T2, T3, T4>>
Type Parameters
Name Description
T1
T2
T3
T4
  • Improve this Doc
  • View Source
Back to top Generated by DocFX