x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Blueprint Touch Button

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!

Product Version: Not Selected
Tags:
more ▼

asked Apr 21 '14 at 03:02 PM in Blueprint Scripting

avatar image

Papasmurfo
1 2 3 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Apr 21 '14 at 04:22 PM

avatar image

canI
56 1 2 6

avatar image Papasmurfo Apr 21 '14 at 08:16 PM

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.

avatar image Eddy71 Apr 21 '14 at 09:38 PM

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 : https://answers.unrealengine.com/questions/31397/hud-hitbox-dont-receive-event-on-mobile.html

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 ?

avatar image Papasmurfo Apr 22 '14 at 10:03 AM

Thanks for the Response - I hear they have Slate? But I can't see any documentation or anything about how to run it?

avatar image Eddy71 Apr 22 '14 at 02:55 PM

I have not yet the time to try Slate.

You can find tutorials on the Wiki :

https://wiki.unrealengine.com/Slate,_Hello

https://wiki.unrealengine.com/Slate,_Loading_Styles_%26_Resources

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question