Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- AESContext
- AStar2D
- AStar3D
- AStarGrid2D
- AudioEffectInstance (1)
- AudioSample
- AudioSamplePlayback
- AudioStreamPlayback (5)
- CameraFeed
- CharFXTransform
- ConfigFile
- Crypto
- DTLSServer
- DirAccess
- ENetConnection
- EditorContextMenuPlugin
- EditorDebuggerPlugin
- EditorDebuggerSession
- EditorExportPlatform (6)
- EditorExportPlugin
- EditorExportPreset
- EditorFeatureProfile
- EditorFileSystemImportFormatSupportQuery
- EditorInspectorPlugin
- EditorResourceConversionPlugin
- EditorResourcePreviewGenerator
- EditorResourceTooltipPlugin
- EditorSceneFormatImporter (4)
- EditorScenePostImport
- EditorScenePostImportPlugin
- EditorScript
- EditorTranslationParserPlugin
- EncodedObjectAsID
- EngineProfiler
- Expression
- FileAccess
- GLTFObjectModelProperty
- HMACContext
- HTTPClient
- HashingContext
- ImageFormatLoader (1)
- JavaClass
- JavaObject
- JavaScriptObject
- KinematicCollision2D
- KinematicCollision3D
- Lightmapper (1)
- MeshConvexDecompositionSettings
- MeshDataTool
- MultiplayerAPI (2)
- Mutex
- NavigationPathQueryParameters2D
- NavigationPathQueryParameters3D
- NavigationPathQueryResult2D
- NavigationPathQueryResult3D
- Node3DGizmo (1)
- OggPacketSequencePlayback
- OpenXRAPIExtension
- PCKPacker
- PackedDataContainerRef
- PacketPeer (8)
- PhysicsPointQueryParameters2D
- PhysicsPointQueryParameters3D
- PhysicsRayQueryParameters2D
- PhysicsRayQueryParameters3D
- PhysicsShapeQueryParameters2D
- PhysicsShapeQueryParameters3D
- PhysicsTestMotionParameters2D
- PhysicsTestMotionParameters3D
- PhysicsTestMotionResult2D
- PhysicsTestMotionResult3D
- RDAttachmentFormat
- RDFramebufferPass
- RDPipelineColorBlendState
- RDPipelineColorBlendStateAttachment
- RDPipelineDepthStencilState
- RDPipelineMultisampleState
- RDPipelineRasterizationState
- RDPipelineSpecializationConstant
- RDSamplerState
- RDShaderSource
- RDTextureFormat
- RDTextureView
- RDUniform
- RDVertexAttribute
- RandomNumberGenerator
- RegEx
- RegExMatch
- RenderSceneBuffers (2)
- RenderSceneBuffersConfiguration
- Resource (103)
- ResourceFormatLoader
- ResourceFormatSaver
- ResourceImporter (16)
- SceneState
- SceneTreeTimer
- Semaphore
- SkinReference
- StreamPeer (5)
- SurfaceTool
- TCPServer
- TLSOptions
- TextLine
- TextParagraph
- TextServer (1)
- Thread
- TranslationDomain
- TriangleMesh
- Tween
- Tweener (5)
- UDPServer
- UPNP
- UPNPDevice
- WeakRef
- WebRTCPeerConnection (1)
- XMLParser
- XRInterface (4)
- XRPose
- XRTracker (2)
- ZIPPacker
- ZIPReader
- EditorSceneFormatImporterBlend
- EditorSceneFormatImporterFBX2GLTF
- EditorSceneFormatImporterGLTF
- EditorSceneFormatImporterUFBX
Table of contents
-
virtual const func _get_extensions() -> PackedStringArray -
virtual func _get_import_options(path: String) -> void -
virtual const func _get_option_visibility(option: String) -> Variant -
virtual func _import_scene(options: Dictionary) -> Object -
func add_import_option(value: Variant) -> void -
func add_import_option_advanced(usage_flags: int = 6) -> void -
const IMPORT_SCENE = 1 -
const IMPORT_ANIMATION = 2 -
const IMPORT_FAIL_ON_MISSING_DEPENDENCIES = 4 -
const IMPORT_GENERATE_TANGENT_ARRAYS = 8 -
const IMPORT_USE_NAMED_SKIN_BINDS = 16 -
const IMPORT_DISCARD_MESHES_AND_MATERIALS = 32 -
const IMPORT_FORCE_DISABLE_MESH_COMPRESSION = 64
EditorSceneFormatImporter #
is_refcounted, is_instantiable, editor, not_builtin_classes
Imports scenes from third-parties' 3D files.
EditorSceneFormatImporter allows to define an importer script for a third-party 3D format.
To use EditorSceneFormatImporter, register it using the EditorPlugin.add_scene_format_importer_plugin method first.
Members #
Methods #
virtual const func _get_extensions() -> PackedStringArray#
Return supported file extensions for this scene importer.
virtual func _get_import_options(path: String) -> void#
Override to add general import options. These will appear in the main import dock on the editor. Add options via add_import_option and add_import_option_advanced.
Note: All EditorSceneFormatImporter and EditorScenePostImportPlugin instances will add options for all files. It is good practice to check the file extension when path is non-empty.
When the user is editing project settings, path will be empty. It is recommended to add all options when path is empty to allow the user to customize Import Defaults.
virtual const func _get_option_visibility(option: String) -> Variant#
Should return true to show the given option, false to hide the given option, or null to ignore.
virtual func _import_scene(options: Dictionary) -> Object#
Perform the bulk of the scene import logic here, for example using GLTFDocument or FBXDocument.
func add_import_option(value: Variant) -> void#
Add a specific import option (name and default value only). This function can only be called from _get_import_options.
func add_import_option_advanced(usage_flags: int = 6) -> void#
Add a specific import option. This function can only be called from _get_import_options.
Annotations #
Constants #
const IMPORT_SCENE = 1#
const IMPORT_ANIMATION = 2#
const IMPORT_FAIL_ON_MISSING_DEPENDENCIES = 4#
const IMPORT_GENERATE_TANGENT_ARRAYS = 8#
const IMPORT_USE_NAMED_SKIN_BINDS = 16#
const IMPORT_DISCARD_MESHES_AND_MATERIALS = 32#
const IMPORT_FORCE_DISABLE_MESH_COMPRESSION = 64#
Constructors #
Enums #
Notifications#
enum {
IMPORT_SCENE = 1,
IMPORT_ANIMATION = 2,
IMPORT_FAIL_ON_MISSING_DEPENDENCIES = 4,
IMPORT_GENERATE_TANGENT_ARRAYS = 8,
IMPORT_USE_NAMED_SKIN_BINDS = 16,
IMPORT_DISCARD_MESHES_AND_MATERIALS = 32,
IMPORT_FORCE_DISABLE_MESH_COMPRESSION = 64,
}