Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

Asset.isInCurrentProject

public bool isInCurrentProject;

Description

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 controlled assets belong to the current project.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答