NewObject using TSubclassOf, with ABSTRACT parent class - How to do it?

What you want to do will work, you just passed in the item type as the wrong parameter. The subtype parameter should be the second one. The first parameter is the desired Outer (or owning object). If you don’t care you can call GetTransientPackage(). So the code you want is:

UMyAbstractParent* newItem = NewObject<UMyAbstractParent>( GetTransientPackage( ), itemType );
1 Like