/Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeExecutionContext.h
Iterates over all events. Can only be used during StateTree tick. Expects a lambda which takes constFStateTreeEvent& Event, and returns EStateTreeLoopEvents.
template<typename TFunc> void ForEachEvent ( TFunc && Function ) const