Hey guys,
I’ve been looking around and seen A LOT of people are running into trouble doing some very basic HUD stuff, I know there isnt much documentation at the moment out there.
I’m looking to do a simple touch button based on the Content HUD Example, but running into a lot of troubles.
I have currently got a Rectangle to appear on my hud, but not too sure on how to connect it to a ‘TouchBegin’ event and make it call a function from a different Blueprint.
Thanks!
I believe this is done using hitbox’s. I created a var and set it when creating the button, and then use that for the TouchBegin.
Can you take my through the steps in more detail?
Currently I have attached it to the camera and added a ‘Text’ block in the components, then linked it to a TouchBegin event.
Any staff help would be appreciated as a lot of people are getting into a tangle over this.
Eddy71
(Eddy71)
April 21, 2014, 9:38pm
4
The normal steps for HUD are :
1 - After “Event Receive Draw HUD”, add an Hit Box.
2 - Add an “Event Receive Hit Box Click”.
You can see little example here, in a discussion I opened : Why don't I receive an event from the HitBox on Mobile? - Community & Industry Discussion - Unreal Engine Forums
But I have no event received with this.
Maybe it’s a bug, but without UE developers response I’m not sure.
Maybe the 4.1 update will correct this ?
Thanks for the Response - I hear they have Slate? But I can’t see any documentation or anything about how to run it?
Eddy71
(Eddy71)
April 22, 2014, 2:55pm
6
I have not yet the time to try Slate.
You can find tutorials on the Wiki :
After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...
Reading time: 1 mins 🕑
Likes: 14 ❤
A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums ,Loading_Styles %26_Resources