Quantcast
Viewing latest article 29
Browse Latest Browse All 35

How to deal with discrepancy in application file path between running the exe vs running from Unity?

The application path when running from Unity will be project directory, for example C:\Max\Unity\myproject. The application path when running the built exe will be in the build folder, e.g. C:\Max\Unity\myproject\build. So the expected files/folders which were working when pressing "Play" in Unity or even when pressing ctrl+B in Unity, aren't in the same place when double clicking the exe in the build folder (which presumably reflects how a user would be running the game on their machine).

Is there an elegant way to handle this or do you just duplicate all the files/folders you need across both locations?

Viewing latest article 29
Browse Latest Browse All 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>