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