C++ Build Fails on Default Template!

You’re using ‘EditDefaultsOnly’ and ‘VisibleDefaultsOnly’ - which conflict with each other, you can only use one or the other. Additionally, you’re using TSubObjectPtr which was removed back in 4.4 - you want to be using standard pointers now.

You’re also using a parameter-less constructor, which means you can’t use FObjectInitializer to actually create any sub-components, and therefore it won’t work. You need to use FObjectInitializer AND call super on the constructor.

EDIT: Merged these threads because they’re pretty much the same thing.