Documentation
¶
Overview ¶
Package EditorScenePostImportPlugin provides methods for working with EditorScenePostImportPlugin object instances.
Index ¶
- type Advanced
- type Any
- type Expanded
- type Extension
- type ID
- type Implementation
- type Instance
- func (self Instance) AddImportOption(name string, value any)
- func (self Instance) AddImportOptionAdvanced(atype variant.Type, name string, default_value any)
- func (self Instance) AsEditorScenePostImportPlugin() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) GetOptionValue(name string) any
- func (self Instance) ID() ID
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) Virtual(name string) reflect.Value
- type Interface
- type InternalImportCategory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Expanded ¶
type Expanded [1]gdclass.EditorScenePostImportPlugin
func (Expanded) AddImportOptionAdvanced ¶
func (self Expanded) AddImportOptionAdvanced(atype variant.Type, name string, default_value any, hint ClassDB.PropertyHint, hint_string string, usage_flags int)
Add a specific import option. This function can only be called from [method _get_import_options] and [method _get_internal_import_options].
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsEditorScenePostImportPlugin ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Implementation ¶
type Implementation = implementation
Implementation implements Interface with empty methods.
type Instance ¶
type Instance [1]gdclass.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.
See [Interface] for methods that can be overridden by a [Class] that extends it.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AddImportOption ¶
Add a specific import option (name and default value only). This function can only be called from [method _get_import_options] and [method _get_internal_import_options].
func (Instance) AddImportOptionAdvanced ¶
Add a specific import option. This function can only be called from [method _get_import_options] and [method _get_internal_import_options].
func (Instance) AsEditorScenePostImportPlugin ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) GetOptionValue ¶
Query the value of an option. This function can only be called from those querying visibility, or processing.
type Interface ¶
type Interface interface { //Override to add internal import options. These will appear in the 3D scene import dialog. Add options via [method add_import_option] and [method add_import_option_advanced]. GetInternalImportOptions(category int) //Should return [code]true[/code] to show the given option, [code]false[/code] to hide the given option, or [code]null[/code] to ignore. GetInternalOptionVisibility(category int, for_animation bool, option string) any //Should return [code]true[/code] if the 3D view of the import dialog needs to update when changing the given option. GetInternalOptionUpdateViewRequired(category int, option string) any //Process a specific node or resource for a given category. InternalProcess(category int, base_node Node.Instance, node Node.Instance, resource Resource.Instance) //Override to add general import options. These will appear in the main import dock on the editor. Add options via [method add_import_option] and [method add_import_option_advanced]. GetImportOptions(path string) //Should return [code]true[/code] to show the given option, [code]false[/code] to hide the given option, or [code]null[/code] to ignore. GetOptionVisibility(path string, for_animation bool, option string) any //Pre Process the scene. This function is called right after the scene format loader loaded the scene and no changes have been made. //Pre process may be used to adjust internal import options in the [code]"nodes"[/code], [code]"meshes"[/code], [code]"animations"[/code] or [code]"materials"[/code] keys inside [code]get_option_value("_subresources")[/code]. PreProcess(scene Node.Instance) //Post process the scene. This function is called after the final scene has been configured. PostProcess(scene Node.Instance) }
type InternalImportCategory ¶
type InternalImportCategory int //gd:EditorScenePostImportPlugin.InternalImportCategory
const ( InternalImportCategoryNode InternalImportCategory = 0 InternalImportCategoryMesh3dNode InternalImportCategory = 1 InternalImportCategoryMesh InternalImportCategory = 2 InternalImportCategoryMaterial InternalImportCategory = 3 InternalImportCategoryAnimation InternalImportCategory = 4 InternalImportCategoryAnimationNode InternalImportCategory = 5 InternalImportCategorySkeleton3dNode InternalImportCategory = 6 InternalImportCategoryMax InternalImportCategory = 7 )