ULocalPlayer::GetWorld

Get the world the players actor belongs to

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/LocalPlayer.h

Include

#include "Engine/LocalPlayer.h"

Source

/Engine/Source/Runtime/Engine/Private/LocalPlayer.cpp

Syntax

virtual UWorld * GetWorld() const

Remarks

Get the world the players actor belongs to

Returns

Returns the world of the LocalPlayer's PlayerController. NULL if the LocalPlayer does not have a PlayerController