Currently i have found out about RangeAttribute. Now this will work great, but there is one drawback unfortunately.
I would like to set the range to be specific numbers like: 0, 2, 4, 8
So there is a total of 4 values that the range can be.
Is there any way to conquer this for a public variable? Having the slider be either 0, 2, 4, 8?
Or should i be using something different? I just want to constrict the integer to those values.
Thanks in advance! Also using c#!
[Range(1,4)] public int antiAliasingAmount ;