Navigation
API > API/Runtime > API/Runtime/Core
Class representing a handle to a specific object/function pair bound to a delegate.
| Name | FDelegateHandle |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Delegates/IDelegateInstance.h |
| Include Path | #include "Delegates/IDelegateInstance.h" |
Syntax
class FDelegateHandle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Creates an initially unset handle | Delegates/IDelegateInstance.h | ||
| Creates a handle pointing to a new instance | Delegates/IDelegateInstance.h |
Enums
Public
| Name | Remarks |
|---|---|
| EGenerateNewHandleType |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ID | uint64 | Delegates/IDelegateInstance.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsValid() |
Returns true if this was ever bound to a delegate, but you need to check with the owning delegate to confirm it is still valid | Delegates/IDelegateInstance.h | |
void Reset() |
Clear handle to indicate it is no longer bound | Delegates/IDelegateInstance.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint64 GenerateNewID() |
Generates a new ID for use the delegate handle. | Delegates/IDelegateInstance.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FDelegateHandle& Rhs |
Delegates/IDelegateInstance.h | ||
bool operator==
(
const FDelegateHandle& Rhs |
Delegates/IDelegateInstance.h |