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