Custom Event doesn't react
Hi, I'm trying to make a CCrosshair "selection" and when I press one of my button for selection :
A Custom Event Should Be called...
But It does not work. When I clicked on the button it does not print the second string :
If you can help me it would be really great ... Thank you !
asked Jun 15 '19 at 10:53 AM in Blueprint Scripting
Hey all, posting this just in case someone else might need it, although this is a very "dirty" way of doing it. I'm sure there are better ways of doing it. At least it might give someone a head start and something to improve on.
So I've created two widgets, each with an image that represents the crosshair. I guess you could do with one and then just change the image itself. Image was anchored to middle of the screen with 0.5 alignment for x/y. Then I used similar widget as @Shawrex (see first screen on top of the post) with two buttons just so I could toggle between the crosshair types.
And below is the actual code (inside menu widget). I didn't play with it too much as it's a bit late here so some of the stuff might not be needed, but I will leave it to the professionals to point that out. Both widgets(crosshairs) are created when the menu widget is first created, then I just hid them and used buttons to toggle their visibility. As I said earlier this is a dirty way of doing it but it does work. We can't all be pros, can we? :)
answered Jun 30 '19 at 01:16 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here