EditorScenePostImportPlugin
继承: RefCounted
< Object
Plugin to control and modifying the process of importing a scene.
描述
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.
方法
void | _get_import_options ( path: String ) virtual1 |
void | _get_internal_import_options ( category: int ) virtual1 |
Variant | _get_internal_option_update_view_required ( category: int , option: String ) virtual1 const2 |
Variant | _get_internal_option_visibility ( category: int , for_animation: bool , option: String ) virtual1 const2 |
Variant | _get_option_visibility ( path: String , for_animation: bool , option: String ) virtual1 const2 |
void | _internal_process ( category: int , base_node: Node , node: Node , resource: Resource ) virtual1 |
void | _post_process ( scene: Node ) virtual1 |
void | _pre_process ( scene: Node ) virtual1 |
void | add_import_option ( name: String , value: Variant ) |
void | add_import_option_advanced ( type: Variant.Type, name: String , default_value: Variant , hint: PropertyHint = 0, hint_string: String = "", usage_flags: int = 6 ) |
Variant | get_option_value ( name: StringName ) const2 |
枚举
enum InternalImportCategory:
InternalImportCategory INTERNAL_IMPORT_CATEGORY_NODE = 0
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_MESH_3D_NODE = 1
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_MESH = 2
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_MATERIAL = 3
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_ANIMATION = 4
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_ANIMATION_NODE = 5
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_SKELETON_3D_NODE = 6
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
InternalImportCategory INTERNAL_IMPORT_CATEGORY_MAX = 7
该枚举目前没有描述,请帮我们\ :ref:贡献一个 <doc_updating_the_class_reference>
\ 吧!
方法说明
void
_get_import_options ( path: String
) virtual1
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
.
void
_get_internal_import_options ( category: int
) virtual1
Override to add internal import options. These will appear in the 3D scene import dialog. Add options via add_import_option
and add_import_option_advanced
.
Variant
_get_internal_option_update_view_required ( category: int
, option: String
) virtual1 const2
Return true whether updating the 3D view of the import dialog needs to be updated if an option has changed.
Variant
_get_internal_option_visibility ( category: int
, for_animation: bool
, option: String
) virtual1 const2
Return true or false whether a given option should be visible. Return null to ignore.
Variant
_get_option_visibility ( path: String
, for_animation: bool
, option: String
) virtual1 const2
Return true or false whether a given option should be visible. Return null to ignore.
void
_internal_process ( category: int
, base_node: Node
, node: Node
, resource: Resource
) virtual1
Process a specific node or resource for a given category.
void
_post_process ( scene: Node
) virtual1
Post process the scene. This function is called after the final scene has been configured.
void
_pre_process ( scene: Node
) virtual1
Pre Process the scene. This function is called right after the scene format loader loaded the scene and no changes have been made.
void
add_import_option ( name: String
, value: Variant
)
Add a specific import option (name and default value only). This function can only be called from _get_import_options
and _get_internal_import_options
.
void
add_import_option_advanced ( type: Variant.Type, name: String
, default_value: Variant
, hint: PropertyHint = 0, hint_string: String
= "", usage_flags: int
= 6 )
Add a specific import option. This function can only be called from _get_import_options
and _get_internal_import_options
.
Variant
get_option_value ( name: StringName
) const2
Query the value of an option. This function can only be called from those querying visibility, or processing.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。