Announcement

Collapse
No announcement yet.

Button not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Button not working

    Hi everyone,

    I'm currently facing a problem, I can use button in my widget.
    I do use the setUIgameMode node, I set "showMouseCursor" and "enable click Event" to true in PlayerController, but it doesn't work.
    The button is enabled and focussable.
    Here is the window :
    Window screenshot




    here are the nodes

    Nodes

    I have set everything correctly in the project settings.
    The window is displayed, I can see the cursor, but I can't click on the button.
    Does anyone have an idea?
    Thanks.

    #2

    It might just be that your text block is too big, and it's covering the button.

    I can click my button with this:
    Click image for larger version

Name:	text_block_small.PNG
Views:	20
Size:	2.3 KB
ID:	1717639

    But not with this:
    Click image for larger version

Name:	text_block_big.PNG
Views:	26
Size:	2.4 KB
ID:	1717638

    Comment


      #3
      Thanks for your answer.
      I actually tried to put a simple button on the main canvas, and it doesn't work.
      But I just found the problem.
      My main canvas was actually in "Not hit-testable self and all children" and this behaviour was not overidden in children.
      Thank you verry much

      Comment

      Working...
      X