![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ScriptDelegates.h>
Inheritance diagram for TMulticastScriptDelegate< InThreadSafetyMode >:Public Types | |
| using | ThreadSafetyMode = typename UE::Core::Private::TScriptDelegateTraits< InThreadSafetyMode >::ThreadSafetyMode |
| using | InvocationListType = TArray< UnicastDelegateType > |
Protected Member Functions | |
| void | AddInternal (UnicastDelegateType &&InDelegate) |
| void | AddUniqueInternal (UnicastDelegateType &&InDelegate) |
| void | RemoveInternal (const UnicastDelegateType &InDelegate) const |
| void | RemoveInternal (const UObject *InObject, FName InFunctionName) const |
| void | CompactInvocationList () const |
Protected Attributes | |
| InvocationListType | InvocationList |
Script multi-cast delegate base class
| using TMulticastScriptDelegate< InThreadSafetyMode >::InvocationListType = TArray<UnicastDelegateType> |
| using TMulticastScriptDelegate< InThreadSafetyMode >::ThreadSafetyMode = typename UE::Core::Private::TScriptDelegateTraits<InThreadSafetyMode>::ThreadSafetyMode |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
Adds a function delegate to this multi-cast delegate's invocation list
| InDelegate | Delegate to add |
|
inlineprotected |
Adds a function delegate to this multi-cast delegate's invocation list
| InDelegate | Delegate to add |
|
inline |
|
inline |
Adds a function delegate to this multi-cast delegate's invocation list if a delegate with the same signature doesn't already exist in the invocation list
| InDelegate | Delegate to add |
|
inlineprotected |
Adds a function delegate to this multi-cast delegate's invocation list, if a delegate with that signature doesn't already exist
| InDelegate | Delegate to add |
|
inline |
Removes all functions from this delegate's invocation list
|
inlineprotected |
Cleans up any delegates in our invocation list that have expired (performance is O(N))
|
inline |
|
inline |
Checks whether a function delegate is already a member of this multi-cast delegate's invocation list
| InDelegate | Delegate to check |
|
inline |
Checks whether a function delegate is already a member of this multi-cast delegate's invocation list
| InObject | Object of the delegate to check |
| InFunctionName | Function name of the delegate to check |
|
inline |
|
inline |
Returns all objects associated with this multicast-delegate. For advanced uses only – you should never need call this function in normal circumstances.
|
inline |
Returns all objects associated with this multicast-delegate, even if unreachable. For advanced uses only – you should never need call this function in normal circumstances.
|
inline |
Returns the amount of memory allocated by this delegate's invocation list, not including sizeof(*this).
|
inline |
Checks to see if any functions are bound to this multi-cast delegate
|
inline |
|
inline |
|
inline |
Executes a multi-cast delegate by calling all functions on objects bound to the delegate. Always safe to call, even if when no objects are bound, or if objects have expired. In general, you should never call this function directly. Instead, call Broadcast() on a derived class. Note that this function is not truly const because it will clean up any compactable entries in the invocation list.
| Params | Parameter structure |
|
inline |
|
inline |
Removes a function from this multi-cast delegate's invocation list (performance is O(N)). Note that the order of the delegates may not be preserved!
| InDelegate | Delegate to remove |
|
inline |
Removes a function from this multi-cast delegate's invocation list (performance is O(N)). Note that the order of the delegates may not be preserved!
| InObject | Object of the delegate to remove |
| InFunctionName | Function name of the delegate to remove |
|
inline |
Removes all delegate bindings from this multicast delegate's invocation list that are bound to the specified object.
This method also compacts the invocation list.
| InObject | The object to remove bindings for. |
|
inlineprotected |
Removes a function from this multi-cast delegate's invocation list (performance is O(N)). Note that the order of the delegates may not be preserved!
| InDelegate | Delegate to remove |
|
inlineprotected |
Removes a function from this multi-cast delegate's invocation list (performance is O(N)). Note that the order of the delegates may not be preserved!
| InObject | Object of the delegate to remove |
| InFunctionName | Function name of the delegate to remove |
|
inline |
Converts this delegate to a string representation
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Multi-cast delegate serialization
|
friend |
|
friend |
|
mutableprotected |
Ordered list functions to invoke when the Broadcast function is called