SelfVariantRepresentable

    Structs and scalar types use their own layout for storage.

    VariantRepresentable.swift:41
    protocol SelfVariantRepresentable : VariantRepresentable where Self == Self.VariantContent
    Browse conforming types

    Supertypes

    • 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.

    Citizens in SwiftGodot

    Type members

    Instance members