Hello,
I have a Actor Component for my Recipes, in there i would add default recipes. but this dosn’t work.
My Recipe Class is a UObject with the follow UClass Members:
UCLASS(Abstract, BlueprintType, Blueprintable, EditInlineNew, DefaultToInstanced)
I have in my Actor Component the follow line for them:
UPROPERTY(EditAnywhere, BlueprintReadOnly, Instanced, Category = "Recipes", meta = (AllowPrivateAccess = "true"))
TArray<URecipe*> Recipes;
the Recipes Component is include in the Actor with:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Components", meta = (AllowPrivateAccess = "true"))
URecipesComponent* RecipesComp;
when i try to add a Recipe in the blueprint editor, i got a list of my Recipes, but when i try to add one the the Array, it dosn’t work, it stays empty.
same line of code work fine, when i have the Array on an Actor.
Why is there a different behavior between the same line of code between an Actor and an Actor Component?
What did i not understand?