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

Ability to add enum argument to button functions

$
0
0
A feature I would love to see is for buttons to be able to call functions with an enum type argument for instance...

Code (csharp):
  1.  
  2. public enum type {
  3.   fire, water
  4. }
  5.  
  6. public void SetType(type t) {
  7.   //content
  8. }
  9.  
Currently buttons don't acknowledge these functions as being available. It would be incredibly nice if we could not only see these functions, but assign an enum value to pass in.

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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