I’m checking this open-source project Animation-Texture-Baker. I can run it fine in Unity Editor, but when I build the project in Visual Studio 2015, it keep telling me the error: Error CS0118 ‘AnimatorSystem.TransitionData’ is a type but is used like a variable’ at this line.
if (transitions.TryGetFirstValue(state, out TransitionData item, out NativeMultiHashMapIterator<int> iter))
I think the project is using C#7 because the file: Assembly-CSharp.csproj
written:
<LangVersion>7</LangVersion>
Also I see that the project is using C#7 because it uses ECS: New way of CODING in Unity! ECS Tutorial - YouTube
I’ve tried install the compiler for C#7 with Nuget package, but the error still persists.
How can I fix that error?
Thanks for your time.