EGetWorldErrorMode

The kind of failure handling that GetWorldFromContextObject uses.

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

enum EGetWorldErrorMode
{
    ReturnNull,
    LogAndReturnNull,
    Assert,
}

Values

Name

Description

ReturnNull

Silently returns nullptr, the calling code is expected to handle this gracefully.

LogAndReturnNull

Raises a runtime error but still returns nullptr, the calling code is expected to handle this gracefully.

Assert

Asserts, the calling code is not expecting to handle a failure gracefully.

Remarks

The kind of failure handling that GetWorldFromContextObject uses.