Actor Variable Issue - Blueprint Runtime Error: "Accessed None trying to read property K2Node_DynamicCast"

Hello, I can’t seem to get this node setup to work with a Blueprint that has a camera actor in it. I have the same setup with another blueprint that has a mesh in it working fine, but if I try to recreate the actor object reference variable for that blueprint it also fails. All the settings in the variables appear to be the same.

Thanks for any feedback. Let me know if more info is needed to diagnose this.


Here it would mean one of two things

  1. Cine cam actor ref is not assigned

  2. CineCamActorBP does not inherit from the type of ‘cine cam actor ref’

As you bothered to call the variable ‘…actor ref’, it’s probably 1.

Try putting a print string on it, what name do you get?

image

“None”
I’m not sure how the other two mesh actor blueprints I have that use the same setup are working. I feel like I’m missing something in the variable settings, but they all look the same.

How do I properly assign the reference? My other cube actor BP doesn’t use any set nodes or anything at all. It’s just a blueprint with a cube mesh in it. Somehow I created the Cube Actor Ref and properly referenced the Cube Actor BP that it exists in.

So you have this actor with a camera in it, and a variable ready to hold a reference to that, but when did you say ‘… when I use this variable, that’s the camera actor I’m talking about…’ ( because there could be 500 ).

Right, I understand the need to assign the variable to the specific camera. I’m just not sure how exactly to do it or how it has already been done for my cube BP that doesn’t have any set node or other nodes in the graph.

Is there just one? Is it in the level? Are you also putting the item containing this code in the level?

Yes, there is one of each blueprint in the level. The cube, the cine cam, and the blueprint from my screenshot that needs to reference those actors.

Ok, so when you put this BP in the level, you can tell it which camera actor you’re talking about by using the dropper tool. You just have to make the actor reference ‘instance editable’ first

image

Notice the default is None.

Ahh, it was right there on the details pane… Thanks!

2 Likes