Hi everyone,
This is my first post, been using UE4 for about - near a month now, quite loving it
Anyways, so here’s my problem, been trying to figure it out since last week. The scenario is;
a) I have an actor blueprint class that I named crateClass, represent a mesh - just a normal crate.
b) I have a menu created in widget blueprint class that I named actionWidget.
c) I set an event in my crateClass; ‘Actor On Click’ - which, when I click the box, it will ‘Create Widget’ -> ‘Add To Viewport’ (the actionWidget)
d) I have two crates in the game, lets name the first crate as crateA and the second crate is crateB.
e) As expected, when I click crateA, the widget will show up, THEN when I click crateB, the widget will show up too, HOWEVER the widgets are overlapping.
So, what I’m trying to do is; to remove the actionWidget shown (after I clicked - let say crateA) - when I clicked crateB, OR whenever I clicked other boxes (when there’s more than two boxes in the game)
I hope its not so confusing due to lack of screenshot (I’m at work at the moment, sorry xD).
So yeah basically that’s my current problem. Tried a lot of things (gate/vector dif etc) but I failed to solve it :(((
Any helps/tips/advices are so much appreciated.
Thanks!
AJ