Skip to content

Instantly share code, notes, and snippets.

@HassakuTb
Created May 16, 2016 00:45
Show Gist options
  • Save HassakuTb/bd6ac3a7f2ee6ee6ddd368936b897042 to your computer and use it in GitHub Desktop.
Save HassakuTb/bd6ac3a7f2ee6ee6ddd368936b897042 to your computer and use it in GitHub Desktop.
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