I am looking at the documentation for creating UObject instances here: https://docs.unrealengine.com/latest/INT/Programming/UnrealArchitecture/Objects/Creation/index.html
It mentions that each method takes an optional “Outer Object” but I have no idea what that is or what it means.
Right now I am trying this, but while it compiles, it gives me an error: NewObject with empty name can’t be used to create default subobjects (inside of UObject derived class constructor) as it produces inconsistent object names. Use ObjectInitializer.CreateDefaultSuobject<> instead.
UHexTile* newTile = NewObject<UHexTile>(this);
Now I sort of understand what the error is saying, well not really but sort of, but despite the presumed typo in the suggested function, I don’t see how I could use it since I am not doing this in the ctor. Plus I don’t understand the “empty name” bit since the documentation specifically states using NewObject is designed to generate the name for you.