AssetDatabase.LoadMainAssetAtPath
static function LoadMainAssetAtPath(assetPath: string): Object;
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: "AssetsMyTextureshello.png"

See Also: AssetDatabase.LoadAssetAtPath, AssetDatabase.LoadAllAssetsAtPath.