I am triggering a break-point right at the beginning of the constructor of my class named ABrickGrid. The output for this message is below. What does this message mean?
Assertion failed: !ObjectInitializer.Obj || ObjectInitializer.Obj == this [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.6\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 1844]
Look in the call stack. In another class you use your class ABrickGrid as a property (not a pointer or reference) or you trying to create an object incorrectly.
Example:
You have (incorrect):
// ... in your class (.h)
UPROPERTY(EditAnyWhere)
ABrickGrid GRID;
// ... in your class (.cpp)
A<YOUR_FUNNYACTOR>::A<YOUR_FUNNYACTOR>(const class FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer),
GRID(ObjectInitializer) {
Correct:
// ... in your class (.h)
UPROPERTY(EditAnyWhere)
ABrickGrid* GRID;
// ... in your class (.cpp)
A<YOUR_FUNNYACTOR>::A<YOUR_FUNNYACTOR>(const class FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer) {
GRID = ObjectInitializer.CreateDefaultSubobject<ABrickGrid>(this, "GRID ");