@UE4引擎自动导入资产开发中文件导入问题(Python)
话不多说上代码,这是我的代码
#coding:utf-8
import unreal
task = unreal.AssetImportTask()
# 要导入的文件名 filename (str)
task.filename = " E:\Shot\Camera\S3_E01_Sc01_Cam003_Cam_s367e424.fbx"
# 要导入资产内容的路径
task.destination_path = '/Game/test'
# 导入内容的自定义名称
task.destination_name = 'test'
task.replace_existing = True
task.automated = True
task.save = True
task.options = unreal.FbxImportUI()
task.options.import_as_skeletal = True
task.options.override_full_name = True
task.options.mesh_type_to_import = unreal.FBXImportType.FBXIT_SKELETAL_MESH
task.options.skeletal_mesh_import_data.set_editor_property('update_skeleton_reference_pose', False
task.options.skeletal_mesh_import_data.set_editor_property('use_t0_as_ref_pose', True)
task.options.skeletal_mesh_import_data.set_editor_property('preserve_smoothing_groups&#