Hello. I have a group of Machine. I want to select a machine when touch and highlight it. I want it deselected if a different machine is touch. I want all deselected if the ground or something else is touch. So far this seems to be working.
But.
I also want to open a menu if an already selected/highlighted machine is touched. This part I can’t seem to get right. I have a vague feeling I’ve seen something similar dealt with in a tutorial or example but can’t think of which one. Any help is appreciated
The way I would approach it is to initially add a trigger once to that first event.
Then you have 2 options:
- You can add a subevent to the first event. Add it as the first event, and check if Machine.isSelected is true. Then action accordingly.
- Otherwise add an action to the first event and set a boolean variable to the value of isSelected, and have another event (not a subevent) that actions when this variable is true.
1 Like
I “think” I followed what you said and came up with this. It seems to be working with just the test text display. TYVM