EditorImportPlugin

    Registers a custom resource importer in the editor. Use the class to parse any file and import it as a new resource type.

    EditorImportPlugin.swift:24
    class EditorImportPlugin

    EditorImportPlugins provide a way to extend the editor’s resource import functionality. Use them to import resources from custom files or to provide alternatives to the editor’s existing importers.

    EditorImportPlugins work by associating with specific file extensions and a resource type. See _getRecognizedExtensions and _getResourceType. They may optionally specify some import presets that affect the import process. EditorImportPlugins are responsible for creating the resources and saving them in the .godot/imported directory (see ProjectSettings/application/config/useHiddenProjectDataDirectory).

    Below is an example EditorImportPlugin that imports a Mesh from a file with the extension “.special” or “.spec”:

    To use EditorImportPlugin, register it using the addImportPlugin(importer:firstPriority:) method first.

    Superclasses

    Citizens in SwiftGodot

    Conformances

    • protocol CustomStringConvertible

      A type with a customized textual representation.

    • protocol Equatable

      A type that can be compared for value equality.

    • protocol Hashable

      A type that can be hashed into a Hasher to produce an integer hash value.

    • protocol Identifiable<ID>

      A class of types whose instances hold the value of an entity with stable identity.

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

    Type members

    Instance members

    Show implementation details (13)

    Hide implementation details