Remove out of range exceptions due to serialization issues.
This commit is contained in:
@@ -52,8 +52,6 @@ public class Slider : ContainerControl
|
|||||||
get => _maximum;
|
get => _maximum;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
//if (value < _minimum || Mathf.IsZero(value))
|
|
||||||
//throw new ArgumentOutOfRangeException();
|
|
||||||
if (WholeNumbers)
|
if (WholeNumbers)
|
||||||
value = Mathf.RoundToInt(value);
|
value = Mathf.RoundToInt(value);
|
||||||
_maximum = value;
|
_maximum = value;
|
||||||
@@ -71,8 +69,6 @@ public class Slider : ContainerControl
|
|||||||
get => _minimum;
|
get => _minimum;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
//if (value > _maximum)
|
|
||||||
//throw new ArgumentOutOfRangeException();
|
|
||||||
if (WholeNumbers)
|
if (WholeNumbers)
|
||||||
value = Mathf.RoundToInt(value);
|
value = Mathf.RoundToInt(value);
|
||||||
_minimum = value;
|
_minimum = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user