GetWorld() not working

Here’s my repo.

GetWorld() throws an error now. UWorld is apparently not recognised. When I try to peek the definition of GetWorld() I get three different references, none of them being to GameFramework/Actor.h.

Solution

include "Engine/World.h" to the top of the .cpp file where it throws the error!

Privacy & Terms