class in UnityEditor.Experimental.AssetImporters
Switch to Manual在导入事件期间定义脚本化导入器的导入上下文。
此类包含 OnImportAsset() 任务的输入和输出信息。
assetPath | 要导入的源资源文件的路径。 |
mainObject | The main object set on the AssetImportContext. |
selectedBuildTarget | This indicates what platform the import event is targeting. |
AddObjectToAsset | 向导入操作的结果添加对象。 |
DependsOnSourceAsset | Creates dependency between the asset and a source asset. |
GetObjects | Gets the list of objects set on the AssetImportContext. |
LogImportError | Logs an error message encountered during import. |
LogImportWarning | Logs a warning message encountered during import. |
SetMainObject | 设置导入的主要对象。 |