I have created a widget animation that when entering with the character in a trigger box reproduces it without problems. The problem is that I can’t find a way to reproduce the reverse when the character exits the trigger box.
I hope I have explained myself and that someone knows how to help me,
In this case I am using the widget to warn the user that in that area you can activate “e” key to focus a video and during the video display you can stop focusing if you press “e” key again (a new widget appears to warn from this).
I explain what I have:
· (1 and 3) The character enters the trigger box and the widget appears with its respective animation, but if it exits the trigger, the widget simply disappears (I can’t figure out how to execute the reverse when I exit the trigger (this is my doubt))
· (2) If the character activates “e” key the view changes to a camera. So the old widget is no longer visible and a new widget appears, which when you press “e” key, also disappears.