I think I forgot mentionning but these are PrimaryDataAsset classes and then I create DataAssets from them:
UCLASS()
class UCustomClass : public UPrimaryDataAsset
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, Category = "Defaults")
float Damage = 0.f;
};
And here’s the child PDA which is just containing few more variables:
UCLASS()
class UChildClass : public UCustomClass
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere)
float RandomMultiplier = 0.f;
};
So I am able to create Data Assets from these 2 classes, and then select them in the array, but I can’t access (by casting) to the child at runtime in the array