Hi,
i have created a plugin. Within this plugin there is an easy function.
But when i use this function in BP, the engine crashes.
Here is the function. I have figured out that the for loop is responsible for the crash.
void ARaidfireGravityActor::UpdateGravityActors(const UObject* WorldContextObject, TSet<ARaidfireGravityActor*>& OutGravityActors)
{
QUICK_SCOPE_CYCLE_COUNTER(ARaidfireGravityActor_UpdateGravityActors);
OutGravityActors.Reset();
UWorld* World = GEngine->GetWorldFromContextObject(WorldContextObject);
for(TActorIterator<AActor> It(World); It; ++It)
{
}
}
I have copied this for loop from the “get all actors of class” function.
Thanks in advance