Rectangle.setSizeFromVector()

Set the size of the rectangle with the Vector2 given as parameter

Parameters

NameTypeDescription
1sizeVector2

Return value

Rectangle

the rectangle with its new size

Usage