GetWorld()

May I ask if we need to GetWorld() in tick every frame?
Is it possible to assign a pointer to it, say, in beginplay?
like UWorld* World = GetWorld(); //in begin play
and World ->GetTimeSeconds(); //in Tick

It’s already a member variable and that’s what GetWorld gets.

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

Privacy & Terms