UPROPERTY(EditAnywhere, BlueprintReadOnly, Instanced)
class UItem* Item;
I want to grab the “Heal Amount” variable, but upon casting to BP Item Food, which is what holds the HealAmount variable, the cast fails.
Why do instanced variables even give the option to use a child class if you can’t even cast them into the child class? This doesn’t seem to make any sense. Perhaps I am using this incorrectly?
I have fixed it but this solution isn’t what fixed it. I just restarted the editor and it somehow worked. Love your website btw, has helped me plenty in my Unreal journey