Method SetScaleRange
SetScaleRange(float, float)
Sets both MinScale and MaxScale atomically, avoiding ordering-dependent validation errors when the desired range lies entirely outside the current default range of [0.1, 10].
public void SetScaleRange(float minScale, float maxScale)
Parameters
minScalefloatThe minimum scale value. Must be positive and less than
maxScale.maxScalefloatThe maximum scale value. Must be positive and greater than
minScale.
Exceptions
- ArgumentOutOfRangeException
Thrown when
minScaleis less than or equal to zero,maxScaleis less than or equal to zero, orminScaleis greater than or equal tomaxScale.