f111fei / react-native-unity-demo

103 stars 80 forks source link

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

Open scorpionfeng opened 5 years ago

scorpionfeng commented 5 years ago

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

isair commented 5 years ago

Are you using the unity-2017 branch?

matramos1 commented 4 years ago

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.