Unity3DAliases.

TryGetUnityVersionForProject(ICakeContext, string, string) Method

Summary

Try and get the version of Unity3D a specified project uses.
Assembly
Cake.Unity3D.dll
Namespace
Cake.Unity3D
Containing Type
Unity3DAliases

Syntax

public static bool TryGetUnityVersionForProject(this ICakeContext context, string projectPath, out string unityVersion)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The active cake context.
projectPath string The absolute path to the Unity3D project we want to get the Unity3D version for.
unityVersion string If found the name of the Unity3D version used for the project.

Return Value

Type Description
bool True if the editor version was found, false otherwise.