unreal.AssetImportData

class unreal.AssetImportData(outer=None, name='None')

Bases: unreal.Object

todo: Make this class better suited to multiple import paths - maybe have FAssetImportInfo use a map rather than array?

C++ Source:

  • Module: Engine

  • File: AssetImportData.h

Editor Properties: (see get_editor_property/set_editor_property)

  • source_data (AssetImportInfo): [Read-Only] Source Data: Source file data describing the files that were used to import this asset.

extract_filenames()

K2 Extract Filenames

Return type

Array(str)

get_first_filename() str

Helper function to return the first filename stored in this data. The resulting filename will be absolute (ie, not relative to the asset).

Return type

str

scripted_add_filename(path, index, source_file_label) None

Add or update a filename at the specified index. If the index is greater then the number of source file, it will add empty filenames to fill up to the specified index. The timespan and MD5 will be computed.

Parameters
  • path (str) –

  • index (int32) –

  • source_file_label (str) –