Zeblote
(Zeblote)
May 26, 2017, 4:19am
24
My Wwise audio plugin is using a line that throws an error:
public static string GetDefaultVersionFileName()
{
return Path.Combine(UnrealBuildTool.UnrealBuildTool.EngineDirectory.FullName, "Build" + Path.DirectorySeparatorChar + "Build.version");
}
It says that “UnrealBuildTool.UnrealBuildTool” is unaccessible due to its protection level"
It also throws the error that .EngineDirectory is not valid
I cannot find any documentation on the UnlrealBuildTool stuff though; it seems like they may have made it protected in 4.16? Is there a more preferred way to access the engine directory?
I’ve no idea what calls that method you have there, but I’m using this in another place in Build.cs:
Path.GetFullPath(BuildConfiguration.RelativeEnginePath)
Maybe it helps?