Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Does event trigger happen every frame or just 1 time?

$
0
0
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?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>