AssetDatabase.LoadMainAssetAtPath Manual     Reference     Scripting  
Scripting > Editor Classes > AssetDatabase
AssetDatabase.LoadMainAssetAtPath

static function LoadMainAssetAtPath (assetPath : string) : Object

Description

Returns the main asset object at assetPath.

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

See Also: AssetDatabase.LoadAssetAtPath, AssetDatabase.LoadAllAssetsAtPath