//================================================================= // Byway Studios Inc. Confidential Information. // Copyright Byway Studios Inc. All rights reserved //================================================================= def call(pathToProjectVersion) { unsafeEcho "Detected Unity Version begin" String projectVersionContents = readFile(pathToProjectVersion) unsafeEcho "Get projectVersionContents: " + projectVersionContents String unityVersion = projectVersionContents.split('\n')[0].split(':')[1].trim() unsafeEcho "Detected Unity Version as: " + unityVersion return unityVersion }