.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_IntArray: IntArray ======== **Category:** Built-In Types Brief Description ----------------- Integer Array. Member Functions ---------------- +----------------------------------+-------------------------------------------------------------------------------------------------------+ | void | :ref:`push_back` **(** :ref:`int` integer **)** | +----------------------------------+-------------------------------------------------------------------------------------------------------+ | void | :ref:`resize` **(** :ref:`int` idx **)** | +----------------------------------+-------------------------------------------------------------------------------------------------------+ | void | :ref:`set` **(** :ref:`int` idx, :ref:`int` integer **)** | +----------------------------------+-------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`size` **(** **)** | +----------------------------------+-------------------------------------------------------------------------------------------------------+ | :ref:`IntArray` | :ref:`IntArray` **(** :ref:`Array` from **)** | +----------------------------------+-------------------------------------------------------------------------------------------------------+ Description ----------- Integer Array. Array of integers. Can only contain integers. Optimized for memory usage, can't fragment the memory. Member Function Description --------------------------- .. _class_IntArray_push_back: - void **push_back** **(** :ref:`int` integer **)** Append a value to the array. .. _class_IntArray_resize: - void **resize** **(** :ref:`int` idx **)** Resize the array. .. _class_IntArray_set: - void **set** **(** :ref:`int` idx, :ref:`int` integer **)** Set an index in the array. .. _class_IntArray_size: - :ref:`int` **size** **(** **)** Return the array size. .. _class_IntArray_IntArray: - :ref:`IntArray` **IntArray** **(** :ref:`Array` from **)** Create from a generic array.