react-native-unity-demo icon indicating copy to clipboard operation
react-native-unity-demo copied to clipboard

test.unity can't has errors need to be fix

Open scorpionfeng opened this issue 6 years ago • 2 comments

when I do the step : Open unity/Cube/Assets/test.unity

the unity 2017 show lot of error needs to be fix, and when I press the run button

It show me the message of "all compiler error have to be fixed before you can enter playmode"

And my unity version is 2017.4.14f1 Personal

scorpionfeng avatar Feb 22 '19 14:02 scorpionfeng

Are you using the unity-2017 branch?

isair avatar Feb 26 '19 15:02 isair

I don't know if that's the case, but i had errors too, and for me the problem was that Unity was using by default c#3.5 (deprecated), and the scripts were in c#4.0.

The solution was to configure the project in Unity to use a more recent version of the language:

Edit->Project Settings->Player->Other Settings->Configuration->Scripting Runtime Version

I'm using Unity 2019.1.14f1 personal and master branch of this demo.

matramos1 avatar Nov 13 '19 13:11 matramos1