Hey guys,
I’m trying to create a custom foreach loop in C++, while it kinda works, the layout in the BP is bit strange.
I would like to have a “loop body” exec pin on the right instead of having a delegate with a custom event at the lower left corner
I declared the function like this:
DECLARE_DYNAMIC_DELEGATE_FourParams(FNeighbourResult, EBCMapElementNeighbourDirectionBits, Bit, bool, IsSet, FVector, Dir, FRotator, Rotation);
UFUNCTION(BlueprintCallable, Category = "BCMapElementModuleActor")
void ForEachNeighbour(EBCMapElementNeighbourDirectionBits Bits, const FNeighbourResult& Result);
Any help is appreciated, thanks!