I have a class that derives from UDataAsset that is called ItemsDB, and then I have a Data Asset blueprint that is derived from ItemsDB.h . I also have a class called Pickup that is the base class for all items.
ItemsDB.h has an array like this:
TArray<TSubclassOf<APickup>> pickupActors;
When I open the Data Asset and add a variable to the array I can set a blueprint derived from Pickup.h with no problems, but when I try to access this array through code (in a class called Inventory) or even just check if the array is not null I got a runtime error and UE4 crashes.
Thanks foin advance!