Hi There.
I’ve run into a problem with forward declarations.
Suppose I forward declare a class called “MyObject” to be used inside my character, and in my character, I want to create a new object of type “MyObject”, how would I go about doing this?
Usually I’d do
MyObjectPointer = NewObject<UMyObject>(this, UMyObject::StaticClass());
This gives an error:
“Incomplete type is not allowed”
Any help would be appreciated.