in plugin-unity-agent/src/main/kotlin/jetbrains/buildServer/unity/detectors/WindowsUnityDetector.kt [39:53]
override fun getVersionFromInstall(editorRoot: File): UnityVersion? {
LOG.debug("Looking for Unity installation in $editorRoot")
val executable = getEditorPath(editorRoot)
if (!executable.exists()) {
LOG.debug("Cannot find $executable")
return null
}
val version = peProductVersionDetector.detect(executable)
if (version == null) {
LOG.debug("Cannot get version from $executable")
}
return version
}