AssetDatabase.LoadMainAssetAtPath 指定路径加载主资源


static function LoadMainAssetAtPath (assetPath : string) : Object

Description描述

Returns the main asset object at assetPath.

返回指定路径assetPath下的主资源。

All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png"

所有的路径都是相对于工程目录文件。 例如” Assets/MyTextures/hello.png”

参见:AssetDatabase.LoadAssetAtPath, AssetDatabase.LoadAllAssetsAtPath


,