Navigation
API > API/Runtime > API/Runtime/Engine
The kind of failure handling that GetWorldFromContextObject uses.
| Name | EGetWorldErrorMode |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Engine.h |
| Include Path | #include "Engine/Engine.h" |
Syntax
enum EGetWorldErrorMode
{
ReturnNull,
LogAndReturnNull,
Assert,
}
Values
| Name | Remarks |
|---|---|
| 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. |