Rectangle node


Display a rectangle centered with the axis and according to the related material with the following specificity when appearance is:

The field cornerRadius allows to display rounded corners for solid rectangle but not with image or video textures.


SFVec2f size 1 1:
The field size is in pixels and is modified by the above transformations.
If any size component is negative, it is replaced by the corresponding image dimension (i.e. size -1 -1 uses actual image dimension).

SFVec2f cornerRadius 0 0:
When cornerRadius has non zero values, the rectangle is rendered with rounded corners.
The above transformations also apply to these values.
Rounded corners are only supported with Material2D (solid color, transparency and filled properties).