cast to widget inside blueprint

This is probably a super easy (once you know how…) but here is another cast to question…

I have a blueprint for a door, i added a widget inside the blueprint, set widget class inside the BP.

I cant figure out how to cast to from the widget to the BP? (or i might be setting it up all wrong?)
As i understand i dont need a create widget node since the widget is created inside the Actor BP?

I need to send my “Float X” varible from my actor BP (ChildDoors) to the widget.



You can directly set the float x like this:

Structure wise, does that mean that the widget becomes an inherited part of the bp in terms of creating variables?

I’m having a hard time grasping the target actor in general when I can’t select it in the viewport… total noob here…

That’s for the answer :slight_smile:

1 Like

Direct inheritance nope, this apply when making child bp from another bp.

For reference to work, it need to be alive in the game.

Any bp present in your content browser represent Class(purple) and when you spawn or placed them in the level map, they become Actor. These actor will be assign a reference similar to a unique id for ram purpose. We also say that actor is an instance of that class(from content browser) since there can be many instances of that same class.

If i spawn the class BP_Door twice, i will get 2 instances reference:

  • BP_Door_0
  • BP_Door_1

Then for inheritance, we can use this as an example:

Character inherit from Pawn and Pawn Inherit from Actor.
That why we can cast these:


(if we only have 1 main char)

Wow thank you so much for this!! Feels a lot more logical now!

1 Like

you’re welcome :hugs:

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