mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
classref: Sync with current master branch (42c7f14)
This commit is contained in:
@@ -302,7 +302,9 @@ Searches the array for a value and returns its index or ``-1`` if not found. Opt
|
||||
|
||||
:ref:`Vector2<class_Vector2>` **get**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_PackedVector2Array_method_get>`
|
||||
|
||||
Returns the :ref:`Vector2<class_Vector2>` at the given ``index`` in the array. This is the same as using the ``[]`` operator (``array[index]``).
|
||||
Returns the :ref:`Vector2<class_Vector2>` at the given ``index`` in the array. If ``index`` out-of-bounds or negative, this method fails and returns ``Vector2(0, 0)``.
|
||||
|
||||
This method is similar (but not identical) to the ``[]`` operator. Most notably, when this method fails, it doesn't pause project execution if run from the editor.
|
||||
|
||||
.. rst-class:: classref-item-separator
|
||||
|
||||
@@ -542,6 +544,7 @@ Returns ``true`` if contents of both arrays are the same, i.e. they have all equ
|
||||
Returns the :ref:`Vector2<class_Vector2>` at index ``index``. Negative indices can be used to access the elements starting from the end. Using index out of array's bounds will result in an error.
|
||||
|
||||
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
||||
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
||||
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
||||
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|
||||
.. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
|
||||
|
||||
Reference in New Issue
Block a user