Version: 2017.4
public bool isInCurrentProject ;

説明

Returns true if the asset file exists and is in the current project.

Returns false if the asset file does not exist. Multiple projects and files outside of the current project could be stored in version control. This method can be used to identify which verison control assets belong to the current project.