TInputUnifiedDelegate

Utility delegate class to allow binding to either a C++ function or a blueprint script delegate

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/InputComponent.h

Include

#include "Components/InputComponent.h"

Syntax

template<class DelegateType, class DynamicDelegateType>
struct TInputUnifiedDelegate

Remarks

Utility delegate class to allow binding to either a C++ function or a blueprint script delegate

Variables

Name Description

Protected variable

TSharedPtr< Del...

 

FuncDelegate

Holds the delegate to call.

Protected variable

TSharedPtr< Dyn...

 

FuncDynDelegate

Holds the dynamic delegate to call.

Constructors

Name Description

Public function

TInputUnifiedDelegate()

Public function

TInputUnifiedDelegate

(
    DelegateType D
)

Public function

TInputUnifiedDelegate

(
    DynamicDelegateType D
)

Functions

Name Description

Public function

void

 

BindDelegate

(
    UserClass* Object,
    typename DelegateType::template TUO...
)

Binds a native delegate and unbinds any bound dynamic delegate

Public function

void

 

BindDelegate

(
    UObject* Object,
    const FName FuncName
)

Binds a dynamic delegate and unbinds any bound native delegate

Public function Const

const Delega...

 

GetDelegate()

Returns a const reference to the Function Delegate.

Public function

DelegateType...

 

GetDelegateForManualSet()

Returns a reference to the native delegate and unbinds any bound dynamic delegate

Public function Const

const Dynami...

 

GetDynamicDelegate()

Returns a const reference to the Dynamic Function Delegate.

Public function Const

bool

 

IsBound()

Returns if either the native or dynamic delegate is bound

Public function Const

bool

 

IsBoundToObject

(
    void const* Object
)

Returns if either the native or dynamic delegate is bound to an object

Public function

void

 

Unbind()

Unbinds any bound delegates

Constants

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss