UE4.25 FactoryCreateNew don't work

Ok, you are right something changed from 4.24.

As far as I can tell, registering of Custom Asset type was always intended to be implemented in a module.

There were few things that you need to change compared to your original approach, but don’t worry, I got you covered. I made you a working demo here.

Changes -

  1. I have created a blank module and moved your code there.
  2. You need to add UCLASS(BlueprintType) to your UTextAsset, otherwise it will not be able to create a Blueprint out of it
  3. Created FTextAssetTypeActions. This file is specifying stuff like name of the asset, what category it should be in, the color etc.
  4. Registered FTextAssetTypeActions in here

If you want, you can just copy pasted the Plugins folder to your project and it should work.

Good luck!

1 Like