GameDevEducation / UnityTutorial_BuildingViaCode

MIT License
4 stars 3 forks source link

Update BuildTools.cs #4

Open peq42 opened 1 year ago

peq42 commented 1 year ago

Fix for android build not working if android is not selected as build target. This sadly doesn't fix linux builds with IL2CPP not working

IainMcManus commented 1 year ago

I'm going to hold off for now with merging in the pull request. The SwitchActiveBuildTarget method has been deprecated (there's now an async version) and internally performing the build switches the platform. So I think there may be a different issue at play which is causing the issue.