Expose variable from C++ component

I believe that your UInventoryComponent property in your APlayerCharacter class needs a UPROPERTY(VisibleAnywhere) specifier.