ResourceImporter
Base class for resource importers.
ResourceImporter.swift:17class ResourceImporter
This is the base class for Godot’s resource importers. To implement your own resource importers using editor plugins, see EditorImportPlugin
.
Superclasses
class RefCounted
Base class for reference-counted objects.
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 exampleGString
,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.
Types
Type members
Subclasses
class EditorImportPlugin
Registers a custom resource importer in the editor. Use the class to parse any file and import it as a new resource type.
class ResourceImporterBMFont
Imports a bitmap font in the BMFont (
.fnt
) format.class ResourceImporterBitMap
Imports a
BitMap
resource (2D array of boolean values).class ResourceImporterCSVTranslation
Imports comma-separated values
class ResourceImporterDynamicFont
Imports a TTF, TTC, OTF, OTC, WOFF or WOFF2 font file for font rendering that adapts to any size.
class ResourceImporterImage
Imports a image for use in scripting, with no rendering capabilities.
class ResourceImporterImageFont
Imports a bitmap font where all glyphs have the same width and height.
class ResourceImporterLayeredTexture
Imports a 3-dimensional texture (
Texture3D
), aTexture2DArray
, aCubemap
or aCubemapArray
.class ResourceImporterMP3
Imports an MP3 audio file for playback.
class ResourceImporterOBJ
Imports an OBJ 3D model as an independent
Mesh
or scene.class ResourceImporterOggVorbis
Imports an Ogg Vorbis audio file for playback.
class ResourceImporterScene
Imports a glTF, FBX, Collada or Blender 3D scene.
class ResourceImporterShaderFile
Imports native GLSL shaders (not Godot shaders) as a
RDShaderFile
.class ResourceImporterTexture
Imports an image for use in 2D or 3D rendering.
class ResourceImporterTextureAtlas
Imports a collection of textures from a PNG image into an optimized
AtlasTexture
for 2D rendering.class ResourceImporterWAV
Imports a WAV audio file for playback.