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

Only want to detect button click event

$
0
0
Basically I want to detect button click event. This button is new Unity UI control. But in this I have one problem. When I click on button, one of my statement also execute at same time.

Following statements :

Code (CSharp):
  1. // code snippet
  2. }
So code under if statement also gets executed, I want to stop this. I only want to run my button click code. At present button click code is running as well if statement code is running.

Please give me some...

Only want to detect button click event

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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