// 如果不是项目会返回null(也就是文件或者字符串脚本), 这里会返回null $console.log($script.getProjectRootPath() == null)