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 -
- I have created a blank module and moved your code there.
- You need to add
UCLASS(BlueprintType)
to yourUTextAsset
, otherwise it will not be able to create a Blueprint out of it - Created FTextAssetTypeActions. This file is specifying stuff like name of the asset, what category it should be in, the color etc.
- Registered FTextAssetTypeActions in here
If you want, you can just copy pasted the Plugins folder to your project and it should work.
Good luck!