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?

Ok so I am currently working on a BP that allows one key to spawn and show actor while two other keys hide actor.

alt text

alt text The blueprint is actually working but I keep getting this error:

Error Blueprint Runtime Error: Accessed None trying to read property Companion2 from function: 'ExecuteUbergraph_BP_Player' from node: Set Actor Hidden In Game in graph: EventGraph in object: BP_Player with description: Accessed None trying to read property Companion2

Not really sure how to go about fixing this or if it is anything to worry about? Any help would be greatly appreciated.

Product Version: UE 4.15
companion1-bp.png (109.0 kB)
companion2-bp.png (104.5 kB)
more ▼

asked Aug 20 '17 at 05:46 PM in Blueprint Scripting

avatar image

UpRoar Studios
1 1 2 1

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

1 answer: sort voted first

Its pretty self explaining. If you hit the Hide Key before you spawned anything your Code does not know what you want it to Hide becuase you tell him to hide None/Nothing/Null.

Make sure when you drag anything from a Blue Wire (Objects) those things exist (use a IsValid Node) before you try to do something with them. In a Shipped Game this would be a Hard Crash. In Engine it prevents the Crash and throws a error at you.

Edit: I also noticed you have the same Input event twice. Bad Practise solve it with one Input Event only since you cant guarantee the order of execution.

more ▼

answered Aug 21 '17 at 01:55 AM

avatar image

6.9k 143 26 172

avatar image Nachtmahr Aug 21 '17 at 01:56 AM

Btw. Access None Error is always the same thing. You try to use something that does not exist ;P

(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