Community Tutorial: Working with Custom Assets: Creating the Asset

I think you’re missing the constructor when creating MyAssetFactory.h.
If I’m not mistaken, you should create a constructor in this class, and set its default values in the cpp,

This is the constructor in the cpp file:

UMyAssetFactory::UMyAssetFactory()
{
	bCreateNew = true;  //Make sure to allow to create a new class
	bEditAfterNew = true;
	SupportedClass = UMyAssetFactory::StaticClass();
}

In my case, if I don’t add this, your tutorial doesn’t work… If its not the case in your end… then I don’t know whats going on in my project T_T

1 Like