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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Blueprint Runtime Error: "Accessed None trying to read property PhysicsObject".

Working on a school project, followed a tutorial online https://www.youtube.com/watch?v=HnR1Gf5gXcY on how to grab objects. If you grab object which have their Physics Simulated it works perfectly fine but if you try to grab static meshes it comes up with an error.The game doesn't crash and keeps playing and the errors appear only after you finish playing.alt text alt text alt text alt text

,

Product Version: Not Selected
Tags:
error.png (65.8 kB)
holdtheobject.png (77.8 kB)
followthecamera.png (293.1 kB)
dropobject.png (246.4 kB)
more ▼

asked May 17 '19 at 01:47 PM in Using UE4

avatar image

Monster5643
1

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

1 answer: sort voted first

Your blueprint assumes that the Physics Object is always valid, but it's not. The error message tells you the nodes where you've tried to pass it a physics object, but in at least one case that physics object was null (i.e. it was invalid or nothing at all).

You need to check if the Physics Object coming out of BreakHitResult is valid (if you drag a line from 'HitComponent' and start typing 'valid', you'll see some options). From there you can decide what you want to do if the object is valid or if it isn't valid rather than assuming it will always be valid.

This is a good habit to get into. Never assume that something will always be valid and even if it has been valid once, it might not be anymore.

more ▼

answered May 17 '19 at 05:16 PM

avatar image

phil_me_up
1.5k 6 6 12

(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