Communicating between a component actor and HUD?

Hey everyone! I’m pretty new to Unreal Engine and programming in general so it is probably a silly question but I have been stuck on it for quite a while now.

I am currently following a building tutorial Tutorial 1 , Tutorial 2

And everything is working pretty smoothly, only problem is that instead of using the scroll wheel to select the current mesh I want to use buttons from my HUD, but whenever i try to play custom events from the hud I get the error:

"Blueprint Runtime Error: “Accessed None trying to read property BuildPreviw” which is in my BuildComponent Actor.

Only thing the Hud does is run this custom event

Which then runs this funtion that sets the ID (the current mesh) to another number

which then runs the custom function that changes the mesh based on the current ID

I am not able to use “Get actor of class” on the component actor and I have not successfully managed to use “Cast to” either.

Help is Much appreciated!

  1. Open the Blueprint for your BuildComponent Actor and locate the section where you are trying to access the “BuildPreview” property.

  2. Check to see if the “BuildPreview” property is actually initialized and set to a valid object. If it is not, then you need to initialize it before you can access it.

  3. If the “BuildPreview” property is supposed to be set by another component or actor, make sure that it has been properly linked or set up.

  4. If you are accessing the “BuildPreview” property from another Blueprint or Actor, make sure that the reference to your BuildComponent Actor is valid and not null.

  5. If you are still having trouble identifying the cause of the error, try using Unreal Engine’s debugging tools to step through your Blueprint and identify where the error is occurring.

  6. Once you have identified the cause of the error, make any necessary changes to your Blueprint or code to fix the issue.


This event runs when i click the “B” button on the keyboard and it works without any problem at all, and as long as I have the code in my pawn or component it works wonders. In other words the tutorial is not the problem but the way I am trying to implement it into my HUD