facebook / facebook-sdk-for-unity

The facebook sdk for unity.
https://developers.facebook.com/docs/unity
Other
489 stars 256 forks source link

Can't build Facebook.sln if Unity isn't installed to default path #45

Open tallior opened 7 years ago

tallior commented 7 years ago

.csproj files all reference \Applications\Unity\Unity.app\Contents\Managed\UnityEngine.dll

On my dev machine, i keep multiple versions of Unity installed, so i rename this folder.

There are 2 ways to fix this as i see it:

  1. Setup a property that will point to the Unity installation (allow passing that through command line when building the SDK)
  2. Including a copy of UnityEngine and UnityEditor (if needed) in this repository to compile against (always update it to a minimal version you support).
icywind commented 6 years ago

Just modify scripts/common.sh to point the UNITY_PATH variable to your installation location.

arendhil commented 3 years ago

Just modify scripts/common.sh to point the UNITY_PATH variable to your installation location.

I did as you said but it didn't work properly. I got through the first error but, as tallior said 5 years ago, all csprojs are set for the default location and I had to change it one by one manually.