Navigation
API > API/Plugins > API/Plugins/StateTreeModule > API/Plugins/StateTreeModule/TStateTreeStrongExecutionContext
Description
Registers the delegate to the listener. If the listener was previously registered, then unregister it first before registering it again with the new delegate callback. The listener is bound to a dispatcher in the editor.
| Name | BindDelegate |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeAsyncExecutionContext.h |
| Include Path | #include "StateTreeAsyncExecutionContext.h" |
| Source | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Private/StateTreeAsyncExecutionContext.cpp |
template<bool bWriteAccess, std::enable_if_t<(bWriteAccess), int >>
bool BindDelegate
(
const FStateTreeDelegateListener & Listener,
FSimpleDelegate Delegate
) const
false if the context is not valid or doesn't have a valid frame anymore or the bind failed.