UEngine::GetWorldFromContextObjectChecked

Obtain a world object pointer from an object with has a world context.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Engine/Engine.h"

Syntax

UWorld * GetWorldFromContextObjectChecked
(
    const UObject * Object
) const

Remarks

Obtain a world object pointer from an object with has a world context.

Returns

The world to which the object belongs; asserts if the world cannot be found!

Parameters

Parameter

Description

Object

Object whose owning world we require.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss