![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ScriptDelegates.h>
Inheritance diagram for TScriptDelegate< InThreadSafetyMode >:Public Types | |
| using | ThreadSafetyMode = typename UE::Core::Private::TScriptDelegateTraits< InThreadSafetyMode >::ThreadSafetyMode |
| using | WeakPtrType = typename UE::Core::Private::TScriptDelegateTraits< InThreadSafetyMode >::WeakPtrType |
Static Public Member Functions | |
| template<typename OtherThreadSafetyMode > | |
| static TScriptDelegate | CopyFrom (const TScriptDelegate< OtherThreadSafetyMode > &Other) |
Protected Attributes | |
| WeakPtrType | Object |
| FName | FunctionName |
Friends | |
| template<typename > | |
| class | TScriptDelegate |
| template<typename > | |
| class | TMulticastScriptDelegate |
| class | FCallDelegateHelper |
| struct | TIsZeroConstructType< TScriptDelegate > |
| FArchive & | operator<< (FArchive &Ar, TScriptDelegate &D) |
| void | operator<< (FStructuredArchive::FSlot Slot, TScriptDelegate &D) |
| uint32 | GetTypeHash (const TScriptDelegate &Delegate) |
Script delegate base class.
| using TScriptDelegate< InThreadSafetyMode >::ThreadSafetyMode = typename UE::Core::Private::TScriptDelegateTraits<InThreadSafetyMode>::ThreadSafetyMode |
| using TScriptDelegate< InThreadSafetyMode >::WeakPtrType = typename UE::Core::Private::TScriptDelegateTraits<InThreadSafetyMode>::WeakPtrType |
|
inline |
Default constructor.
|
inline |
|
inline |
|
inline |
Binds a UFunction to this delegate.
| InObject | The object to call the function on. |
| InFunctionName | The name of the function to call. |
|
inline |
Unbinds this delegate (another name to provide a similar interface to TMulticastScriptDelegate)
|
inlinestatic |
|
inline |
Gets the name of the function to call on the bound object
|
inline |
Gets the object bound to this delegate
|
inline |
Gets the object bound to this delegate (const)
|
inline |
Gets the object bound to this delegate, even if the object is unreachable
|
inline |
Gets the object bound to this delegate (const), even if the object is unreachable
|
inline |
|
inline |
|
inline |
Checks to see if the user object bound to this delegate is still valid
|
inline |
Checks to see if this delegate is bound to the given user object.
|
inline |
Checks to see if this delegate is bound to the given user object, even if the object is unreachable.
|
inline |
Checks to see if the user object bound to this delegate will ever be valid again
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Comparison operators
|
inline |
|
inline |
Executes a delegate by calling the named function on the object bound to the delegate. You should always first verify that the delegate is safe to execute by calling IsBound() before calling this function. In general, you should never call this function directly. Instead, call Execute() on a derived class.
| Parameters | Parameter structure |
|
inline |
Converts this delegate to a string representation
|
inline |
Unbinds this delegate
|
friend |
|
friend |
|
friend |
Delegate serialization
|
friend |
Delegate serialization
|
friend |
|
friend |
|
protected |
Name of the function to call on the bound object
|
protected |
The object bound to this delegate, or nullptr if no object is bound