mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
doc: Sync classref for Packed{Int,Float}{32,64}Array additions
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
var polygon = NavigationPolygon.new()
|
||||
var vertices = PackedVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, 50), Vector2(50, 0)])
|
||||
polygon.set_vertices(vertices)
|
||||
var indices = PackedIntArray(0, 3, 1)
|
||||
var indices = PackedInt32Array(0, 3, 1)
|
||||
polygon.add_polygon(indices)
|
||||
$NavigationPolygonInstance.navpoly = polygon
|
||||
[/codeblock]
|
||||
@@ -49,7 +49,7 @@
|
||||
<method name="add_polygon">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="polygon" type="PackedIntArray">
|
||||
<argument index="0" name="polygon" type="PackedInt32Array">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a polygon using the indices of the vertices you get when calling [method get_vertices].
|
||||
@@ -86,12 +86,12 @@
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_polygon">
|
||||
<return type="PackedIntArray">
|
||||
<return type="PackedInt32Array">
|
||||
</return>
|
||||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns a [PackedIntArray] containing the indices of the vertices of a created polygon.
|
||||
Returns a [PackedInt32Array] containing the indices of the vertices of a created polygon.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_polygon_count" qualifiers="const">
|
||||
|
||||
Reference in New Issue
Block a user