From 4726e131db533adb517ab37727ac89bbd8e70315 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 31 Aug 2024 03:43:00 +0200 Subject: [PATCH] Document PackedVector4Array This type was added in Godot 4.3. --- _extensions/gdscript.py | 1 + tutorials/scripting/c_sharp/c_sharp_collections.rst | 1 + tutorials/scripting/c_sharp/c_sharp_variant.rst | 1 + tutorials/scripting/gdscript/gdscript_basics.rst | 1 + 4 files changed, 4 insertions(+) diff --git a/_extensions/gdscript.py b/_extensions/gdscript.py index b2f65261c73..87fad6d44a3 100644 --- a/_extensions/gdscript.py +++ b/_extensions/gdscript.py @@ -358,6 +358,7 @@ def innerstring_rules(ttype): "PackedVector2iArray", "PackedVector3Array", "PackedVector3iArray", + "PackedVector4Array", "PackedColorArray", "null", "void", diff --git a/tutorials/scripting/c_sharp/c_sharp_collections.rst b/tutorials/scripting/c_sharp/c_sharp_collections.rst index 8c67eb4b169..141c4908af6 100644 --- a/tutorials/scripting/c_sharp/c_sharp_collections.rst +++ b/tutorials/scripting/c_sharp/c_sharp_collections.rst @@ -85,6 +85,7 @@ GDScript C# ``PackedStringArray`` ``string[]`` ``PackedVector2Array`` ``Vector2[]`` ``PackedVector3Array`` ``Vector3[]`` +``PackedVector4Array`` ``Vector4[]`` ``PackedColorArray`` ``Color[]`` ====================== ============================================================== diff --git a/tutorials/scripting/c_sharp/c_sharp_variant.rst b/tutorials/scripting/c_sharp/c_sharp_variant.rst index 365056f6745..223e4122bd6 100644 --- a/tutorials/scripting/c_sharp/c_sharp_variant.rst +++ b/tutorials/scripting/c_sharp/c_sharp_variant.rst @@ -129,6 +129,7 @@ Variant.Type C# Type ``PackedStringArray`` ``string[]`` ``PackedVector2Array`` ``Godot.Vector2[]`` ``PackedVector3Array`` ``Godot.Vector3[]`` +``PackedVector4Array`` ``Godot.Vector4[]`` ``PackedColorArray`` ``Godot.Color[]`` ======================= =========================================================== diff --git a/tutorials/scripting/gdscript/gdscript_basics.rst b/tutorials/scripting/gdscript/gdscript_basics.rst index 26c7a6fe7a9..416ba6f4cf6 100644 --- a/tutorials/scripting/gdscript/gdscript_basics.rst +++ b/tutorials/scripting/gdscript/gdscript_basics.rst @@ -895,6 +895,7 @@ arrays. They are therefore only recommended to use for large data sets: - :ref:`PackedStringArray `: An array of strings. - :ref:`PackedVector2Array `: An array of :ref:`Vector2 ` values. - :ref:`PackedVector3Array `: An array of :ref:`Vector3 ` values. +- :ref:`PackedVector4Array `: An array of :ref:`Vector4 ` values. - :ref:`PackedColorArray `: An array of :ref:`Color ` values. :ref:`Dictionary `