static
def
LoadMainAssetAtPath(assetPath as string)
as 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.