Announcement

Collapse
No announcement yet.

Interact Icon Issues.

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

    Interact Icon Issues.

    I have a icon that will hover over a button showing that you can interact with it, but im having issues, something is wrong with my 'GET' node and im not too sure what it is.
    Error after playing the game:
    Click image for larger version

Name:	83aed8498ec3cb15b28d3a12700ff022.png
Views:	1
Size:	7.9 KB
ID:	1226629

    Button blueprint:
    Click image for larger version

Name:	e05be0622c8526e52d4cbf90bf03c7dc.png
Views:	1
Size:	278.3 KB
ID:	1226630

    #2
    GetAllWidgetsOfClass returns nothing it seems. Place a validation node after Get to make sure.
    Or, rather than using a ham-fisted GetAllWidgetsOfClass (ignore me, I just dislike that sloppy node), save the Icon widget reference to a variable so you can access it directly. You could use GameMode for this, or HUD, or a custom Widget Manager.

    If every object/button is supposed to have its own icon, consider storing the variable inside that very object.
    Last edited by Everynone; 08-11-2017, 05:03 AM. Reason: that typo

    Comment


      #3
      To add to what Everynone said, It looks like you need to create the widget first. What I would do is use the "Create Widget" node at begin play and save that widget to a variable.

      Comment

      Working...
      X