AssetDatabase.LoadMainAssetAtPath
public static Object LoadMainAssetAtPath(string assetPath);
Parameters
| assetPath | Filesystem path of the asset to load. |
Description 描述
Returns the main asset object at assetPath.
All paths are relative to the project folder, for example: "Assets/MyTextures/hello.png".
See Also: AssetDatabase.LoadAssetAtPath, AssetDatabase.LoadAllAssetsAtPath, AssetDatabase.LoadAllAssetRepresentationsAtPath.