UEngine::GetWorldFromContextObjectChecked

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

Choose your operating system:

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.