AssetDatabase.LoadMainAssetAtPath
static function LoadMainAssetAtPath(assetPath: string): Object;
static Object LoadMainAssetAtPath(string assetPath);
static def LoadMainAssetAtPath(assetPath as string) as Object
Description

Returns the main asset object at assetPath.

All paths are relative to the project folder. Like: "AssetsMyTextureshello.png"

See Also: AssetDatabase.LoadAssetAtPath, AssetDatabase.LoadAllAssetsAtPath.