Created
June 13, 2018 08:45
-
-
Save todorok1/741533c281d25a16aa5d7e0acc1f5655 to your computer and use it in GitHub Desktop.
RangeAttributeの使い方あれこれ
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
// 最小値は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