You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/classes/PackedByteArray.xml
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -292,6 +292,13 @@
292
292
Encodes a [Variant] at the index of [param byte_offset] bytes. A sufficient space must be allocated, depending on the encoded variant's size. If [param allow_objects] is [code]false[/code], [Object]-derived values are not permitted and will instead be serialized as ID-only.
293
293
</description>
294
294
</method>
295
+
<methodname="erase">
296
+
<returntype="bool" />
297
+
<paramindex="0"name="value"type="int" />
298
+
<description>
299
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
Copy file name to clipboardExpand all lines: doc/classes/PackedColorArray.xml
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,13 @@
79
79
Creates a copy of the array, and returns it.
80
80
</description>
81
81
</method>
82
+
<methodname="erase">
83
+
<returntype="bool" />
84
+
<paramindex="0"name="value"type="Color" />
85
+
<description>
86
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
Copy file name to clipboardExpand all lines: doc/classes/PackedFloat32Array.xml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,14 @@
77
77
Creates a copy of the array, and returns it.
78
78
</description>
79
79
</method>
80
+
<methodname="erase">
81
+
<returntype="bool" />
82
+
<paramindex="0"name="value"type="float" />
83
+
<description>
84
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
85
+
[b]Note:[/b] [constant @GDScript.NAN] doesn't behave the same as other numbers. Therefore, the results from this method may not be accurate if NaNs are included.
Copy file name to clipboardExpand all lines: doc/classes/PackedFloat64Array.xml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,14 @@
78
78
Creates a copy of the array, and returns it.
79
79
</description>
80
80
</method>
81
+
<methodname="erase">
82
+
<returntype="bool" />
83
+
<paramindex="0"name="value"type="float" />
84
+
<description>
85
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
86
+
[b]Note:[/b] [constant @GDScript.NAN] doesn't behave the same as other numbers. Therefore, the results from this method may not be accurate if NaNs are included.
Copy file name to clipboardExpand all lines: doc/classes/PackedInt32Array.xml
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,13 @@
75
75
Creates a copy of the array, and returns it.
76
76
</description>
77
77
</method>
78
+
<methodname="erase">
79
+
<returntype="bool" />
80
+
<paramindex="0"name="value"type="int" />
81
+
<description>
82
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
Copy file name to clipboardExpand all lines: doc/classes/PackedInt64Array.xml
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,13 @@
76
76
Creates a copy of the array, and returns it.
77
77
</description>
78
78
</method>
79
+
<methodname="erase">
80
+
<returntype="bool" />
81
+
<paramindex="0"name="value"type="int" />
82
+
<description>
83
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
Copy file name to clipboardExpand all lines: doc/classes/PackedStringArray.xml
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,13 @@
82
82
Creates a copy of the array, and returns it.
83
83
</description>
84
84
</method>
85
+
<methodname="erase">
86
+
<returntype="bool" />
87
+
<paramindex="0"name="value"type="String" />
88
+
<description>
89
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
Copy file name to clipboardExpand all lines: doc/classes/PackedVector2Array.xml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,14 @@
82
82
Creates a copy of the array, and returns it.
83
83
</description>
84
84
</method>
85
+
<methodname="erase">
86
+
<returntype="bool" />
87
+
<paramindex="0"name="value"type="Vector2" />
88
+
<description>
89
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
90
+
[b]Note:[/b] Vectors with [constant @GDScript.NAN] elements don't behave the same as other vectors. Therefore, the results from this method may not be accurate if NaNs are included.
Copy file name to clipboardExpand all lines: doc/classes/PackedVector3Array.xml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,14 @@
81
81
Creates a copy of the array, and returns it.
82
82
</description>
83
83
</method>
84
+
<methodname="erase">
85
+
<returntype="bool" />
86
+
<paramindex="0"name="value"type="Vector3" />
87
+
<description>
88
+
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
89
+
[b]Note:[/b] Vectors with [constant @GDScript.NAN] elements don't behave the same as other vectors. Therefore, the results from this method may not be accurate if NaNs are included.
0 commit comments