Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/UObject
Inheritance Hierarchy
- TDelegateAccessHandlerBase
- TScriptDelegate
- TBaseDynamicDelegate
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/UObject/ScriptDelegates.h |
| Include | #include "UObject/ScriptDelegates.h" |
Syntax
template<typename InThreadSafetyMode>
class TScriptDelegate : public TDelegateAccessHandlerBase< UE::Core::Private::TScriptDelegateTraits< InThreadSafetyMode >::ThreadSafetyMode >
Remarks
Script delegate base class.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FName | FunctionName | Name of the function to call on the bound object | |
| WeakPtrType | Object | The object bound to this delegate, or nullptr if no object is bound |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. | |||
TScriptDelegate
(
const TScriptDelegate& Other |
|||
TScriptDelegate
(
const TScriptDelegate< OtherThreadSafetyMode >& Other |
Deprecated - remove after TScriptDelegateTraits |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BindUFunction
(
UObject* InObject, |
Binds a UFunction to this delegate. | |
| void | Clear () |
Unbinds this delegate (another name to provide a similar interface to TMulticastScriptDelegate) | |
| TScriptDelegate | CopyFrom
(
const TScriptDelegate< OtherThreadSafetyMode >& Other |
||
| FName | Gets the name of the function to call on the bound object | ||
| const UObject * | GetUObject () |
Gets the object bound to this delegate (const) | |
| UObject * | GetUObject () |
Gets the object bound to this delegate | |
| const UObject * | Gets the object bound to this delegate (const), even if the object is unreachable | ||
| UObject * | Gets the object bound to this delegate, even if the object is unreachable | ||
| WeakPtrType & | |||
| bool | IsBound () |
Checks to see if the user object bound to this delegate is still valid | |
| bool | IsBoundToObject
(
void const* InUserObject |
Checks to see if this delegate is bound to the given user object. | |
| bool | IsBoundToObjectEvenIfUnreachable
(
void const* InUserObject |
Checks to see if this delegate is bound to the given user object, even if the object is unreachable. | |
| bool | Checks to see if the user object bound to this delegate will ever be valid again | ||
| void | ProcessDelegate
(
void* Parameters |
Void ProcessDelegate(void* Parameters) const; | |
| FString | ToString () |
Converts this delegate to a string representation | |
| void | Unbind () |
Unbinds this delegate |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const TScriptDelegate& Other |
||
| TScriptDelegate & | operator=
(
const TScriptDelegate& Other |
||
| bool | operator==
(
const TScriptDelegate& Other |
Comparison operators |
Typedefs
| Name | Description |
|---|---|
| Super | |
| ThreadSafetyMode | |
| WeakPtrType |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const TScriptDelegate< OtherThreadSafetyMode >& Other |
Deprecated - remove after TScriptDelegateTraits |
|
| TScriptDelegate & | operator=
(
const TScriptDelegate< OtherThreadSafetyMode >& Other |
Deprecated - remove after TScriptDelegateTraits |
|
| bool | operator==
(
const TScriptDelegate< OtherThreadSafetyMode >& Other |
Deprecated - remove after TScriptDelegateTraits |
|
TScriptDelegate
(
const TScriptDelegate< OtherThreadSafetyMode >& Other |
Deprecated - remove after TScriptDelegateTraits |