Version: 2023.1

AssetDatabase.AssetPathExists

切换到手册
public static bool AssetPathExists (string path);

返回

bool Returns true if the asset exists, false if not.

描述

Check whether an asset exists at the given path in the database.