x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Accessed None trying to read property, Can't access my inventory blueprint

I have an input action "Inventory" in my character blueprint.

When I press the "I" button, the Inventory shorcut key, it cannot access the functions (HideInventory, ShowInventory) in my Inventory blueprint. It says access none.

I have a variable InventoryReference in my character blueprint, referencing the Inventory blueprint.

Please help me, it's so frustrating, I've been trying to make my inventory system to work but I cannot seem to overcome such simple problem.

alt textalt textalt text

Product Version: UE 4.15
Tags:
more ▼

asked May 24 '17 at 10:13 AM in Blueprint Scripting

avatar image

PistolizedCannon
19 2 5 8

avatar image Milkazar May 24 '17 at 10:19 AM

Are you setting the reference anywhere?

avatar image PistolizedCannon May 24 '17 at 10:26 AM

the InventoryReference variable type in BP_Inventory reference, my inventory blueprint.

avatar image PistolizedCannon May 24 '17 at 10:28 AM

the InventoryReference variable type is BP_Inventory reference, my inventory blueprint.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

maybe I don't understand your answer, or I wasn't clear enough. You have a InventoryBp, which u are referencing. But, that reference is null at the start right? You'll need to set it. In inventoryBP -> OnBeginPlay -> get your character ->set the reference (Not at home now can't test it but should work)

more ▼

answered May 24 '17 at 10:30 AM

avatar image

Milkazar
41 2 2

avatar image PistolizedCannon May 24 '17 at 10:44 AM

Hey man you are awesome! I'm not 100% sure I understand you because english is not my first language. But I went looking where to set the InventoryReference. I set it in my character blueprint. and now it works! Now I can press "I" button and it toggles the inventory widget on and off. Thank you so much!!!

alt text

avatar image Milkazar May 24 '17 at 10:58 AM

Well done mate

avatar image Kjoltblod Nov 24 '17 at 05:05 AM

Hey thanks for your explanation, I've been trying to wrap my head around these errors for a long time and it just clicked for me!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question