I have a button to fire a weapon on a ship. When the player presses down, it fires. I want a auto fire and a single fire. On single fire the button needs to be released and then pressed again. I have a script to do so. The issue iswith single fire I have to press 2 times to get it to work. It works fine with keyboard and mouse. So I wasn't sure if the UI event trigger on the button down and button up only changes when it happens again or every frame....
Does event trigger happen every frame or just 1 time?
Does event trigger happen every frame or just 1 time?