- Home /
Can attributes modify runtime behaviour
I discovered attributes in the form of the range attribute. I thought it would restrict the value of an int, but when I try to add to the number to the point where it gets bigger than the max it just lets me. So I guess all it does is add a slider to the inspector. So is restricting the range of a float/int beyond the capabilities of an attribute or am I using it wrong? And if that is beyond its capabilities, what is the point of attributes?
Attributes are merely Editor functions. They have no impact on what you do outside of the editor and are, in fact, optimized out.
Your answer
Follow this Question
Related Questions
Get RangeAttributes from built in class using Reflection 0 Answers
Variables and ranges in javascript 2 Answers
Does Random.Range() have a max return value? 1 Answer
Array index is out of Range!? 1 Answer
Array index is out of range (C#) ? 3 Answers