Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

how to check if ui toggle is true or false?

$
0
0
hi! I want to read if the UI toggle is true or false. I have this script which doesn't work for no reason
Any Idea how to check that? Thanks!

Code (CSharp):
  1.             if (toggleAP == true)
  2.             {
  3.                 AutoPilot = true;
  4.             }
  5.             else
  6.             {
  7.                 AutoPilot = false;
  8.             }

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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