Choose a sensible range and step
| Setting | Example | Meaning |
|---|---|---|
| Minimum | 0 | Lowest allowed value. |
| Maximum | 100 | Highest allowed value. Keep it greater than Minimum for a useful range. |
| Value | 75 | Authored starting value, clamped to the range during construction. |
| Step | 5 | The increment between allowed values: 0, 5, 10 and so on. |
Step is a numeric increment, not a speed or a delay. Use Step 1 for whole-number choices. Use a fractional step, such as 0.05, when the range is 0 to 1 and small changes matter.
0 to 100 display scale:
Minimum 0, Maximum 100, Step 50 to 1 fractional scale:
Minimum 0, Maximum 1, Step 0.05The control’s live value is numeric and can be a floating-point value. Read it as a float in scripts, even if this particular range uses whole steps. Convert to an integer only when the gameplay rule needs a whole number.
A slider’s caption does not bind it to an engine setting. A slider called Volume still needs an audio workflow; one called Opacity needs an action that applies the value to an Image.
A zero-length range cannot provide a useful drag choice. Start with a small practical range, test both ends, then adjust the step for the amount of precision the player actually needs.
