Announcement

Collapse
No announcement yet.

How to check if a widget is visible?

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

    How to check if a widget is visible?

    I'm having a problem with my project right now and I think I've found the problem, but I'm not sure. I'm not really sure how to check if a widget is visible, so if anyone can shed a little light into this for me, I'd really appreciate it!

    #2
    Originally posted by Thrillride Games View Post
    I'm having a problem with my project right now and I think I've found the problem, but I'm not sure. I'm not really sure how to check if a widget is visible, so if anyone can shed a little light into this for me, I'd really appreciate it!
    Have you tried "is in viewport" node?

    Comment


      #3
      Click image for larger version  Name:	Capture.PNG Views:	1 Size:	36.8 KB ID:	1364653
      This should do it.

      Promote the widget you have created to a variable, and 'get' that reference. There is a widget "get visibility" node which returns a slate visibility enum. Print that string and it should tell you if said widget is visible or not

      (Make sure to connect the print string to event tick, and make sure the variable reference of your problem widget is set via the "create widget" node you undoubtedly have somewhere).
      Last edited by TroJanVirus; 10-04-2017, 09:12 PM. Reason: Typo

      Comment

      Working...
      X