Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active June 14, 2018 05:06
Show Gist options
  • Save todorok1/42548938108b3283ddcbd43f5e312d1c to your computer and use it in GitHub Desktop.
Save todorok1/42548938108b3283ddcbd43f5e312d1c to your computer and use it in GitHub Desktop.
RangeAttributeの使い方あれこれ
const int MinLevel = 1;
const int MaxLevel = 255;
[Range(MinLevel, MaxLevel)][SerializeField]
int level;
[Range(MinLevel, MaxLevel)][SerializeField]
string characterName = "maruyu";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment