Version: 2021.2

AssetDatabase.GetTypeFromPathAndFileID

切换到手册
public static Type GetTypeFromPathAndFileID (string assetPath, long localIdentifierInFile);

参数

assetPath The Asset's path.
localIdentifierInFile The object's local file identifier.

返回

Type The object's type.

描述

Gets an object's type from an Asset path and a local file identifier.