Alternative for DeltaTime

Any reason to prefer UGameplayStatics::GetWorldDeltaSeconds() over GetWorld()->DeltaTimeSeconds?

The latter doesn’t require to include yet-another-header, so it seems simpler.

Only real reason to use the static function over the other is if you don’t have access to the world. You would take a UObject* parameter so the caller can pass in a world context object.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.