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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback