UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TInputUnifiedDelegate< DelegateType, DynamicDelegateType > Struct Template Reference

#include <InputComponent.h>

Public Member Functions

 TInputUnifiedDelegate ()
 
 TInputUnifiedDelegate (DelegateType D)
 
 TInputUnifiedDelegate (DynamicDelegateType D)
 
bool IsBound () const
 
bool IsBoundToObject (void const *Object) const
 
template<class UserClass >
void BindDelegate (UserClass *Object, typename DelegateType::template TMethodPtr< UserClass > Func)
 
void BindDelegate (UObject *Object, const FName FuncName)
 
DelegateType & GetDelegateForManualSet ()
 
void Unbind ()
 
const DelegateType & GetDelegate () const
 
const DynamicDelegateTypeGetDynamicDelegate () const
 

Protected Attributes

TSharedPtr< DelegateType > FuncDelegate
 
TSharedPtr< DynamicDelegateTypeFuncDynDelegate
 

Static Protected Attributes

static const DelegateType UnboundDelegate
 
static const DynamicDelegateType UnboundDynamicDelegate
 

Detailed Description

template<class DelegateType, class DynamicDelegateType>
struct TInputUnifiedDelegate< DelegateType, DynamicDelegateType >

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

Constructor & Destructor Documentation

◆ TInputUnifiedDelegate() [1/3]

template<class DelegateType , class DynamicDelegateType >
TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::TInputUnifiedDelegate ( )
inline

◆ TInputUnifiedDelegate() [2/3]

template<class DelegateType , class DynamicDelegateType >
TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::TInputUnifiedDelegate ( DelegateType  D)
inline

◆ TInputUnifiedDelegate() [3/3]

template<class DelegateType , class DynamicDelegateType >
TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::TInputUnifiedDelegate ( DynamicDelegateType  D)
inline

Member Function Documentation

◆ BindDelegate() [1/2]

template<class DelegateType , class DynamicDelegateType >
void TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::BindDelegate ( UObject Object,
const FName  FuncName 
)
inline

Binds a dynamic delegate and unbinds any bound native delegate

◆ BindDelegate() [2/2]

template<class DelegateType , class DynamicDelegateType >
template<class UserClass >
void TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::BindDelegate ( UserClass *  Object,
typename DelegateType::template TMethodPtr< UserClass >  Func 
)
inline

Binds a native delegate and unbinds any bound dynamic delegate

◆ GetDelegate()

template<class DelegateType , class DynamicDelegateType >
const DelegateType & TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::GetDelegate ( ) const
inline

Returns a const reference to the Function Delegate.

◆ GetDelegateForManualSet()

template<class DelegateType , class DynamicDelegateType >
DelegateType & TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::GetDelegateForManualSet ( )
inline

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

◆ GetDynamicDelegate()

template<class DelegateType , class DynamicDelegateType >
const DynamicDelegateType & TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::GetDynamicDelegate ( ) const
inline

Returns a const reference to the Dynamic Function Delegate.

◆ IsBound()

template<class DelegateType , class DynamicDelegateType >
bool TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::IsBound ( ) const
inline

Returns if either the native or dynamic delegate is bound

◆ IsBoundToObject()

template<class DelegateType , class DynamicDelegateType >
bool TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::IsBoundToObject ( void const *  Object) const
inline

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

◆ Unbind()

template<class DelegateType , class DynamicDelegateType >
void TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::Unbind ( )
inline

Unbinds any bound delegates

Member Data Documentation

◆ FuncDelegate

template<class DelegateType , class DynamicDelegateType >
TSharedPtr<DelegateType> TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::FuncDelegate
protected

Holds the delegate to call.

◆ FuncDynDelegate

template<class DelegateType , class DynamicDelegateType >
TSharedPtr<DynamicDelegateType> TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::FuncDynDelegate
protected

Holds the dynamic delegate to call.

◆ UnboundDelegate

template<class DelegateType , class DynamicDelegateType >
const DelegateType TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::UnboundDelegate
staticprotected

◆ UnboundDynamicDelegate

template<class DelegateType , class DynamicDelegateType >
const DynamicDelegateType TInputUnifiedDelegate< DelegateType, DynamicDelegateType >::UnboundDynamicDelegate
staticprotected

The documentation for this struct was generated from the following file: