EditorScenePostImportPlugin
Plugin to control and modifying the process of importing a scene.
EditorScenePostImportPlugin.swift:11class EditorScenePostImportPlugin
This plugin type exists to modify the process of importing scenes, allowing to change the content as well as add importer options at every stage of the process.
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
Instance members
func addImportOption(name: String, value: Variant
) Add a specific import option (name and default value only). This function can only be called from
_getImportOptions(path:)
and_getInternalImportOptions(category:)
.func addImportOptionAdvanced(type: Variant.GType, name: String, defaultValue: Variant, hint: PropertyHint, hintString: String, usageFlags: Int32
) Add a specific import option. This function can only be called from
_getImportOptions(path:)
and_getInternalImportOptions(category:)
.func getOptionValue(name: StringName
) -> Variant Query the value of an option. This function can only be called from those querying visibility, or processing.
Show implementation details (8)
Hide implementation details
func _getImportOptions(path: String
) Override to add general import options. These will appear in the main import dock on the editor. Add options via
addImportOption(name:value:)
andaddImportOptionAdvanced(type:name:defaultValue:hint:hintString:usageFlags:)
.func _getInternalImportOptions(category: Int32
) Override to add internal import options. These will appear in the 3D scene import dialog. Add options via
addImportOption(name:value:)
andaddImportOptionAdvanced(type:name:defaultValue:hint:hintString:usageFlags:)
.func _getInternalOptionUpdateViewRequired(category: Int32, option: String
) -> Variant Return true whether updating the 3D view of the import dialog needs to be updated if an option has changed.
func _getInternalOptionVisibility(category: Int32, forAnimation: Bool, option: String
) -> Variant Return true or false whether a given option should be visible. Return null to ignore.
func _getOptionVisibility(path: String, forAnimation: Bool, option: String
) -> Variant Return true or false whether a given option should be visible. Return null to ignore.
func _internalProcess(category: Int32, baseNode: Node?, node: Node?, resource: Resource?
) Process a specific node or resource for a given category.
func _postProcess(scene: Node?
) Post process the scene. This function is called after the final scene has been configured.
func _preProcess(scene: Node?
) Pre Process the scene. This function is called right after the scene format loader loaded the scene and no changes have been made.