Created
May 16, 2016 00:45
-
-
Save HassakuTb/bd6ac3a7f2ee6ee6ddd368936b897042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
public class EnumLabelSample : MonoBehaviour{ | |
[EnumLabel(typeof(Fruit))] | |
public string[] names = new string[Enum.GetValues(typeof(Fruit)).Length]; | |
private enum Fruit { | |
Orange, | |
Apple, | |
Banana, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment