Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Set Input.GetKey to true by scripting

$
0
0
Can i fake the Input.GetKey to an GUI.RepeatButton by setting the Input of the Key to true when pushing the Button? I tried the following, but it doesn't work. Is there any possibility? if( GUI.RepeatButton( new Rect( 30, 30, 50, 50 ), "right" ) ) { Input.GetKey(KeyCode.RightArrow) = true; Debug.Log(Input.GetKey(KeyCode.RightArrow); }

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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