Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RangeAttributeの使い方あれこれ
// 最小値は0、最大値は255としてスライダーを表示
[Range(0, 255)]
public int hp;
// Rangeを設定してもprivateだと表示されない
[Range(0, 255)]
int mp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.