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"

Button Press sometimes doesnt press (really strange issue)

I have a simple button. It mostly works but sometime it completely doesnt register that I pressed it. It wont even highlight. If I hold the button down it wont do anything but if I keep holding the button down and then move the mouse then it acts as its just been pressed. What is going on?!

Product Version: UE 4.17
Tags:
more ▼

asked Apr 22 '18 at 07:13 PM in Using UE4

avatar image

RyanTGames
24 1 4 7

avatar image goncasmage Apr 22 '18 at 07:44 PM

Can you show some screenshots of the widget and the button?

avatar image RyanTGames Apr 22 '18 at 07:54 PM

alt text The button is the whole left side of the screen.

bug1.jpg (642.2 kB)
bug2.jpg (517.8 kB)
avatar image goncasmage Apr 22 '18 at 07:56 PM

Can you show me the actual widget blueprint with the button's details?

avatar image RyanTGames Apr 22 '18 at 07:58 PM

its the bug1.jpeg under the image. Is that what you need?

avatar image goncasmage Apr 22 '18 at 08:00 PM

Not exactly, switch to the designer tab, then click that button in the hierarchy, then take a screenshot.

avatar image RyanTGames Apr 22 '18 at 08:10 PM

alt text

bug3.jpg (624.9 kB)
(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hmm i'd say try snapping the button to the edge of the screen using the Anchors property (first property in the Details panel), that is not really the way to make buttons fill the screen. Maybe it'll work after you do that.

more ▼

answered Apr 22 '18 at 08:16 PM

avatar image

goncasmage
897 12 14 22

avatar image RyanTGames Apr 22 '18 at 08:38 PM

didnt work. I feel like its the code that the button is calling in my character blueprint is messing it up but why would separate blueprint stop me from pressing a button, the button should press regardless of what its calling. The pressed colour is green when i press it but some times it doesnt change colour because it doesnt recognise me pressing it, until i repress it or move my mouse. its mind boggling.

avatar image goncasmage Apr 22 '18 at 08:43 PM

It might be because of your device (i assume you're using a touch device), although just to make sure, try placing PrintString nodes just after the OnCliked event is called, or place a breakpoint in that cast to the MainCharacter.

avatar image RyanTGames Apr 22 '18 at 09:07 PM

i put a print string before the casting. it doesnt print because the button doesnt actually press even though I pressed it. the problem only occurs mainly when my character lands on the ground and then I click the button. it works most of the time but sometimes just doesnt. But again why would code in a separate blueprint stop me pressing the button?

(comments are locked)
10|2000 characters needed characters left
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