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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

UI not updating

Hi I am trying to get a button click event to update a bool on clicked and for the bool to dictate the colour of the button on tick. I have the UI showing in game and the button appears to receive a click but nothing happens and the on tick event never updates the colour as if I set the bool to true it does not update the colour of the button. Any ideas where I am going wrong?alt text

Product Version: UE 4.20
Tags:
blueprint.png (398.4 kB)
more ▼

asked Nov 11 '18 at 01:07 AM in Blueprint Scripting

avatar image

HaydnScarlett
3 2

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

2 answers: sort voted first

Set Color and Opacity affects children of the button only, not the button itself. If you want to change the button itself, look into styles (Normal, Hovered, Pressed... and so on):

alt text

For each button style there is Tint which controls button colour separately. Btw, this is not something you want to do in Tick. Why not use FlipFlop when you press the button.


There is some inconsistency in the naming convention here; for other widgets this option reads Content Color and Opacity hence the confusion. It reflects the functionality much better. The tooltip is correct, though.

capture.png (97.0 kB)
more ▼

answered Nov 11 '18 at 02:48 AM

avatar image

Everynone
14.7k 76 25 61

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

Thank you all good now. I am using flipflop as suggested.

more ▼

answered Nov 11 '18 at 10:10 PM

avatar image

HaydnScarlett
3 2

(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