Casting componen actor to widget

Can i cast blueprint actor component to UI?


cast this to this ui

i want cast custom event

You need to get the reference first. I assume your weapon component is inside your player character right? So you can try this :

the weapone in my character blueprint (child actor)

Oh I see, I thought it was an actor component. To access a child actor, you need an extra node :

It should work if you have only one child actor in your character (if you have more, you need to select the correct one)

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