Download

how can click a button than print a string

in HUD Blueprint i have draw a button
4ef3af996abf1c45be8ece759947358056978c6a.jpegf86a530716942dfe822b38f83af3f4c659e37857.jpeg
in level Blueprint have a print function
b9ac35dda0ec9e12697d286e578cfb3c7a2424c2.jpeg
I want to click the button than print a string,the button in the HUD Blueprint,the print string function in the level Blueprint.

If what you want is communicating between your HUD BP and your Level BP, this page might help you:

I have seen the document,because HUD can’t drag in the level scene so I don’t known how to Specifying the Blueprint Instance.like this
bd31ca4e2cfe5d41c2c03cfd0f90ae617c2d4bed.jpeg
and in the HUD blueprint i also don’t known how to new a level blueprint variable.

I’ve started playing around with the HUD bp and usually what I do is pass information to the player controller or pawn class and relay the information from one of those two bps. Hope this helps.

OH,Thank you very much!