[PackedRealArray] of vertex tangents. Each element in groups of 4 floats, first 3 floats determine the tangent, and the last the binormal direction as -1 or 1.
[PackedFloat32Array] of vertex tangents. Each element in groups of 4 floats, first 3 floats determine the tangent, and the last the binormal direction as -1 or 1.
[PackedIntArray] of integers used as indices referencing vertices, colors, normals, tangents, and textures. All of those arrays must have the same number of elements as the vertex array. No index can be beyond the vertex array size. When this index array is present, it puts the function into "index mode," where the index selects the *i*'th vertex, normal, tangent, color, UV, etc. This means if you want to have different normals or colors along an edge, you have to duplicate the vertices.
[PackedInt32Array] of integers used as indices referencing vertices, colors, normals, tangents, and textures. All of those arrays must have the same number of elements as the vertex array. No index can be beyond the vertex array size. When this index array is present, it puts the function into "index mode," where the index selects the *i*'th vertex, normal, tangent, color, UV, etc. This means if you want to have different normals or colors along an edge, you have to duplicate the vertices.
For triangles, the index array is interpreted as triples, referring to the vertices of each triangle. For lines, the index array is in pairs indicating the start and end of each line.
For triangles, the index array is interpreted as triples, referring to the vertices of each triangle. For lines, the index array is in pairs indicating the start and end of each line.
Triangulates the area specified by discrete set of [code]points[/code] such that no point is inside the circumcircle of any resulting triangle. Returns a [PackedIntArray] where each triangle consists of three consecutive point indices into [code]points[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). If the triangulation did not succeed, an empty [PackedIntArray] is returned.
Triangulates the area specified by discrete set of [code]points[/code] such that no point is inside the circumcircle of any resulting triangle. Returns a [PackedInt32Array] where each triangle consists of three consecutive point indices into [code]points[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). If the triangulation did not succeed, an empty [PackedInt32Array] is returned.
Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PackedIntArray] where each triangle consists of three consecutive point indices into [code]polygon[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). If the triangulation did not succeed, an empty [PackedIntArray] is returned.
Triangulates the polygon specified by the points in [code]polygon[/code]. Returns a [PackedInt32Array] where each triangle consists of three consecutive point indices into [code]polygon[/code] (i.e. the returned array will have [code]n * 3[/code] elements, with [code]n[/code] being the number of found triangles). If the triangulation did not succeed, an empty [PackedInt32Array] is returned.
Appends a [PackedFloat64Array] at the end of this array.
</description>
</method>
<methodname="empty">
<returntype="bool">
</return>
<description>
Returns [code]true[/code] if the array is empty.
</description>
</method>
<methodname="insert">
<returntype="int">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<argumentindex="1"name="value"type="float">
</argument>
<description>
Inserts a new element at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]).
</description>
</method>
<methodname="invert">
<returntype="void">
</return>
<description>
Reverses the order of the elements in the array.
</description>
</method>
<methodname="push_back">
<returntype="void">
</return>
<argumentindex="0"name="value"type="float">
</argument>
<description>
Appends an element at the end of the array.
</description>
</method>
<methodname="remove">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<description>
Removes an element from the array by index.
</description>
</method>
<methodname="resize">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<description>
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
An [Array] specifically designed to hold integer values ([int]). Packs data tightly, so it saves memory for large array sizes.
An [Array] specifically designed to hold 32-bit integer values. Packs data tightly, so it saves memory for large array sizes.
[b]Note:[/b] This type is passed by value and not by reference.
[b]Note:[/b] This type is passed by value and not by reference.
[b]Note:[/b] This type is limited to signed 32-bit integers, which means it can only take values in the interval [code][-2^31, 2^31 - 1][/code], i.e. [code][-2147483648, 2147483647][/code]. Exceeding those bounds will wrap around. In comparison, [int] uses signed 64-bit integers which can hold much larger values.
[b]Note:[/b] This type stores signed 32-bit integers, which means it can take values in the interval [code][-2^31, 2^31 - 1][/code], i.e. [code][-2147483648, 2147483647][/code]. Exceeding those bounds will wrap around. In comparison, [int] uses signed 64-bit integers which can hold much larger values. If you need to pack 64-bit integers tightly, see [PackedInt64Array].
</description>
</description>
<tutorials>
<tutorials>
</tutorials>
</tutorials>
<methods>
<methods>
<methodname="PackedIntArray">
<methodname="PackedInt32Array">
<returntype="PackedIntArray">
<returntype="PackedInt32Array">
</return>
</return>
<argumentindex="0"name="from"type="Array">
<argumentindex="0"name="from"type="Array">
</argument>
</argument>
<description>
<description>
Constructs a new [PackedIntArray]. Optionally, you can pass in a generic [Array] that will be converted.
Constructs a new [PackedInt32Array]. Optionally, you can pass in a generic [Array] that will be converted.
An [Array] specifically designed to hold 64-bit integer values. Packs data tightly, so it saves memory for large array sizes.
[b]Note:[/b] This type is passed by value and not by reference.
[b]Note:[/b] This type stores signed 64-bit integers, which means it can take values in the interval [code][-2^63, 2^63 - 1][/code], i.e. [code][-9223372036854775808, 9223372036854775807][/code]. Exceeding those bounds will wrap around. If you only need to pack 32-bit integers tightly, see [PackedInt32Array] for a more memory-friendly alternative.
</description>
<tutorials>
</tutorials>
<methods>
<methodname="PackedInt64Array">
<returntype="PackedInt64Array">
</return>
<argumentindex="0"name="from"type="Array">
</argument>
<description>
Constructs a new [PackedInt64Array]. Optionally, you can pass in a generic [Array] that will be converted.
</description>
</method>
<methodname="append">
<returntype="void">
</return>
<argumentindex="0"name="integer"type="int">
</argument>
<description>
Appends an element at the end of the array (alias of [method push_back]).
Appends a [PackedInt64Array] at the end of this array.
</description>
</method>
<methodname="empty">
<returntype="bool">
</return>
<description>
Returns [code]true[/code] if the array is empty.
</description>
</method>
<methodname="insert">
<returntype="int">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<argumentindex="1"name="integer"type="int">
</argument>
<description>
Inserts a new integer at a given position in the array. The position must be valid, or at the end of the array ([code]idx == size()[/code]).
</description>
</method>
<methodname="invert">
<returntype="void">
</return>
<description>
Reverses the order of the elements in the array.
</description>
</method>
<methodname="push_back">
<returntype="void">
</return>
<argumentindex="0"name="integer"type="int">
</argument>
<description>
Appends a value to the array.
</description>
</method>
<methodname="remove">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<description>
Removes an element from the array by index.
</description>
</method>
<methodname="resize">
<returntype="void">
</return>
<argumentindex="0"name="idx"type="int">
</argument>
<description>
Sets the size of the array. If the array is grown, reserves elements at the end of the array. If the array is shrunk, truncates the array to the new size.
A dictionary representation of the scene contents.
A dictionary representation of the scene contents.
Available keys include "rnames" and "variants" for resources, "node_count", "nodes", "node_paths" for nodes, "editable_instances" for base scene children overrides, "conn_count" and "conns" for signal connections, and "version" for the format style of the PackedScene.
Available keys include "rnames" and "variants" for resources, "node_count", "nodes", "node_paths" for nodes, "editable_instances" for base scene children overrides, "conn_count" and "conns" for signal connections, and "version" for the format style of the PackedScene.
Perform a search inside the text. Search flags can be specified in the [enum SearchFlags] enum.
Perform a search inside the text. Search flags can be specified in the [enum SearchFlags] enum.
Returns an empty [code]PackedIntArray[/code] if no result was found. Otherwise, the result line and column can be accessed at indices specified in the [enum SearchResult] enum, e.g:
Returns an empty [code]PackedInt32Array[/code] if no result was found. Otherwise, the result line and column can be accessed at indices specified in the [enum SearchResult] enum, e.g: