Quantcast
Channel: Latest Questions by Chesley
Viewing all articles
Browse latest Browse all 62

Another Error - Enum.Parse

$
0
0
static var saved90left = "KeyCode.Q"; static var t90l : KeyCode = KeyCode.Q; function Start () { t90l = System.Enum.Parse( typeof( t90l ), saved90left ); } **when i do this i get this message** ArgumentException: The requested value 'KeyCode.Q' was not found. System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase) System.Enum.Parse (System.Type enumType, System.String value) Mouse2.Start () (at Assets/Scripts/Mouse2.js:13) **can someone explain this?**

Viewing all articles
Browse latest Browse all 62

Trending Articles



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