Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AssetPathExists(string)

Check whether an asset exists at the given path in the database.
Read time 1 minuteLast updated 11 days ago

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.