isInCurrentProject
Returns true if the asset file exists and is in the current project.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEditor.VersionControl
- Assembly: UnityEditor
public bool isInCurrentProject { get; }
Remarks
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.