clarify [member polygons] functionality in the Polygon2D class documentation

(cherry picked from commit de66acc624)
This commit is contained in:
streq 2022-10-30 20:32:36 -03:00 committed by Haoyu Qiu
parent 22ecc0561d
commit a001932790

View file

@ -94,6 +94,7 @@
[b]Note:[/b] This returns a copy of the [PoolVector2Array] rather than a reference.
</member>
<member name="polygons" type="Array" setter="set_polygons" getter="get_polygons" default="[ ]">
The list of polygons, in case more than one is being represented. Every individual polygon is stored as a [PoolIntArray] where each [int] is an index to a point in [member polygon]. If empty, this property will be ignored, and the resulting single polygon will be composed of all points in [member polygon], using the order they are stored in.
</member>
<member name="skeleton" type="NodePath" setter="set_skeleton" getter="get_skeleton" default="NodePath(&quot;&quot;)">
</member>