unreal.AssetImportTask
¶
- class unreal.AssetImportTask(outer: Optional[Object] = None, name: Union[Name, str] = 'None')¶
Bases:
Object
Contains data for a group of assets to import
C++ Source:
Module: UnrealEd
File: AssetImportTask.h
Editor Properties: (see get_editor_property/set_editor_property)
async_
(bool): [Read-Write] Async: Perform the import asynchronously for file formats where async import is availableautomated
(bool): [Read-Write] Automated: Avoid dialogsdestination_name
(str): [Read-Write] Destination Name: Optional custom name to import asdestination_path
(str): [Read-Write] Destination Path: Path where asset will be imported tofactory
(Factory): [Read-Write] Factory: Optional factory to usefilename
(str): [Read-Write] Filename: Filename to importimported_object_paths
(Array[str]): [Read-Write] Imported Object Paths: Paths to objects created or updated after importoptions
(Object): [Read-Write] Options: Import options specific to the type of assetreplace_existing
(bool): [Read-Write] Replace Existing: Overwrite existing assetsreplace_existing_settings
(bool): [Read-Write] Replace Existing Settings: Replace existing settings when overwriting existing assetsresult
(Array[Object]): [Read-Write] Result deprecated: Please use the GetObjects function instead.save
(bool): [Read-Write] Save: Save after importing
- property async_: bool¶
[Read-Write] Async: Perform the import asynchronously for file formats where async import is available
- Type:
(bool)
- property destination_name: str¶
[Read-Write] Destination Name: Optional custom name to import as
- Type:
(str)
- property destination_path: str¶
[Read-Write] Destination Path: Path where asset will be imported to
- Type:
(str)
- get_objects() Array[Object] ¶
Get the list of imported objects. Note that if the import was asynchronous, this will block until the results are ready. To test whether asynchronous results are ready or not, use IsAsyncImportComplete().
- property imported_object_paths: Array[str]¶
[Read-Write] Imported Object Paths: Paths to objects created or updated after import
- is_async_import_complete() bool ¶
Query whether this asynchronous import task is complete, and the results are ready to read. This will always return true in the case of a blocking import.
- Return type:
- property options: Object¶
[Read-Write] Options: Import options specific to the type of asset
- Type:
(Object)
- property replace_existing: bool¶
[Read-Write] Replace Existing: Overwrite existing assets
- Type:
(bool)
- property replace_existing_settings: bool¶
[Read-Write] Replace Existing Settings: Replace existing settings when overwriting existing assets
- Type:
(bool)