Version: 2017.1

AssetDatabase.GetMainAssetTypeAtPath

Cambiar al Manual
public static Type GetMainAssetTypeAtPath (string assetPath);

Parámetros

assetPath Filesystem path of the asset to load.

Descripción

Returns the type of the main asset object at assetPath.

All paths are relative to the Project folder, for example: "Assets/MyTextures/hello.png".