Class reference

EditorSceneFormatImporter

Inherits RefCounted

Imports scenes from third-parties' 3D files.

Description

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.

Methods

PackedStringArray _get_extensions() virtual const

Return supported file extensions for this scene importer.

void _get_import_options(String path) virtual

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.

Variant _get_option_visibility(String path, bool for_animation, String option) virtual const

Should return true to show the given option, false to hide the given option, or null to ignore.

void add_import_option(String name, Variant value)

Add a specific import option (name and default value only). This function can only be called from _get_import_options().

Constants

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

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.