StaticAllocateObjectErrorTests

Check for StaticAllocateObject error; only for use with the editor, make or other commandlets.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp

Syntax

bool StaticAllocateObjectErrorTests
(
    const UClass * Class,
    UObject * InOuter,
    FName Name,
    EObjectFlags SetFlags
)

Remarks

Check for StaticAllocateObject error; only for use with the editor, make or other commandlets.

Returns

true if nullptr should be returned; there was a problem reported

Parameters

Parameter

Description

Class

the class of the object to create

InOuter

the object to create this object within (the Outer property for the new object will be set to the value specified here).

Name

the name to give the new object. If no value (NAME_None) is specified, the object will be given a unique name in the form of ClassName_#.

SetFlags

the ObjectFlags to assign to the new object. some flags can affect the behavior of constructing the object.

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