RID

    A handle for a Resource’s unique identifier.

    RID.swift:11
    class RID

    The RID Variant type is used to access a low-level resource by its unique ID. RIDs are opaque, which means they do not grant access to the resource by themselves. They are used by the low-level server classes, such as DisplayServer, RenderingServer, TextServer, etc.

    A low-level resource may correspond to a high-level Resource, such as Texture or Mesh.

    Citizens in SwiftGodot

    Conformances

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

    Type features

    Instance features