文档

Unity Engine

Unity Engine

AssetPathExists(string)

Check whether an asset exists at the given path in the database.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool AssetPathExists(string path)

Parameters

path

Path of the asset to check.

Returns

Type

Description

boolReturns true if the asset exists, false if not.