Game Development Reference
In-Depth Information
The reason for this is quite simple. All our measurements for position and padding
are now completely wrong; they simply haven't been scaled or factored into the new
type of measurement we have selected using our
Canvas Scaler
.
Granted, if you are starting a new Canvas and selected the Physically
sized
Canvas Scaler
from the beginning, you won't have these issues
simply because you started with the correct measurements.
However, if you switch to using a different
Ui Scale Mode
, you will
have to resize your elements again.
If we simply return and update the Rect Transform's
Left
and
Right
values to
100
(instead of the previous value of
200
), our
Slider
will again be positioned correctly
and give the following results when scaled:
Slider as seen in the Free Aspect view using Constant Physical Size, that is now scaled correctly