14 - Rectangle Radius and Extent Parameters Obsolete
From edition=14
onwards, the Rectangle function no longer takes radius
and extent
parameters.
You should now always be using the width
and height
parameters instead.
The radius
and extent
parameters were buggy - they produced different shapes for sprites vs colliders.
It was possible to use these parameters unintentionally as they would be found from context.
For that reason, they had to be removed.
Upgrade instructions
First, set edition=14
(or higher) in your easel.toml
file:
[engine]
edition = 14
Now, the compiler will error if you do not provide both width
and height
to the Rectangle
function.
Fix this error by converting your radius
and extent
parameters to width
and height
parameters.
Opt-out
If you would like to temporarily opt-out your entire project from this change,
you can set allowRectangleRadiusParameter=true
in legacy.toml
, like this:
[legacy]
allowRectangleRadiusParameter = true