I am trying to pass a Float from another BP which has inheritance from a custom class (its not standard class), I have tried both BP interface and casting but no luck so far

1 Like

What kind of blueprints are they, and what are they called?

Hello @UE_sims ,

You need to put something on the object node in the cast. Here is the example of Cast usage.

For example above, if you want to cast to a specific game mode class, you have to get the game mode first.

Second example:


In the image above, just imagine that I want to get the enemy health when the enemy is overlapped with my character. For that, I can just cast the overlapped actor to my enemy class.

maybe this help.

BPs are not e.g. Actor / Character / material / class, but they are made out of a C++ custom class, so I am not sure what they are called exactly

Thanks for the images, so exactly on your 2nd image you have the other object which is an actor (overlapped), I do not know what class / type to put there, cause its not inheriting from a standard class, but a class which has inheritance of a custom c++ BP.

So they are both just blueprints though?

You can pass a float with direct communication

1 Like

Many thanks, true! That was a great video and I watched it several times, it worked! :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.