PackedVector2Array

    A packed array of Vector2s.

    PackedVector2Array.swift:8
    class PackedVector2Array

    An array specifically designed to hold Vector2. Packs data tightly, so it saves memory for large array sizes.

    Citizens in SwiftGodot

    Conformances

    • protocol BidirectionalCollection<Element>

      A collection that supports backward as well as forward traversal.

    • protocol Collection<Element>

      A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.

    • protocol ContentVariantRepresentable

      Some of Godot’s builtin classes use ContentType for storage. This needs to be public because it affects their initialization, but SwiftGodot users should never need to conform their types toContentVariantRepresentable.

    • protocol Equatable

      A type that can be compared for value equality.

    • protocol RandomAccessCollection<Element>

      A collection that supports efficient random-access index traversal.

    • protocol Sequence<Element>

      A type that provides sequential, iterated access to its elements.

    • protocol VariantRepresentable

      Types that conform to VariantRepresentable can be stored directly in Variant with no conversion. These include all of the Variant types from Godot (for example GString, Rect, Plane), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.

    • protocol VariantStorable

      Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.

    Typealiases

    Type members

    Instance members

    Show obsolete interfaces (1)

    Hide obsolete interfaces

    Type features

    Instance features

    Show obsolete interfaces (2)

    Hide obsolete interfaces