i made a widget with a button on it, i can add that widget to the viewport and the button will work but when i added it to my other widget and added that to the viewport instead of the first one. The button stopped working and doesn’t do anything.
What do your widgets do?
it is a quest journal, the first widget is set up so when it is pressed it will expand the menu so you can see the details of the quest. i put it on a second widget (journal widget) and the button stops working
Widgets are like layers. if you call the journal widget last, it will “cover” the botton, which will be unclickable.
I may suggest you three solutions:
- Blend the two widgets into one.
create your journal element (image, textbox, whatever) and set it to hidden. when you press the button, the widget will change the visibility of the item and do what it should do (set the text of the quest) - You may invert to order you add the widgets to the viewport. first add a blank journal widget and then the botton one. as you click the button, it’ll work as for solution one.
- If your journal doesn’t overlap with the button, you may resize the size of the widget into the screen (like in the picture) and made it not overlapping the button. it this case you won’t need to change anything of the graphs.
If this helped you, set this as the answer.
can someone help please