/Engine/Source/Runtime/Engine/Classes/Engine/Engine.h
Obtain a world object pointer from an object with has a world context.
The world to which the object belongs or nullptr if it cannot be found.
[UWorld](API\Runtime\Engine\Engine\UWorld) * GetWorldFromContextObject ( const [UObject](API\Runtime\CoreUObject\UObject\UObject) * Object, EGetWorldErrorMode ErrorMode ) const