Unity 2018.4.23f1 - Asset Store import Error C# 4.0 Language

Hi there,

after I bought the asset and imported it from the asset store I get this message and can’t do anything:

Assets/AstarPathfindingProject/Core/AI/RichPath.cs(161,28): error CS1644: Feature `pattern matching’ cannot be used because it is not part of the C# 4.0 language specification

I’m using Unity 2018.4.23f1 what should I do?

Greetings,
Dario

Hi

Which version are you trying to install, the beta or the non-beta?

In any case, you can support higher versions than C# 4.0 by setting your Player Settings -> Scripting Runtime to .NET 4.6 equivalent (or upgrading to a newer version of Unity).