Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

How to flag Unity playmode vs Build playmode

$
0
0
Hey folks, So for complicated reasons I have a need to change some method calls in code dependant on whether a developer is looking at the game in Unitys playmode or if the game is actually compliled, built and playing. I essentially want something akin to this: if (Unity.Playmode){ DoThis(); } if (Build.Playmode){ DoSomethingElse(); } I'm not clear on whether something like Application.isPlaying would be called both in playmode and once the game is built, if so it would be unsuitable. Any advice would be greatly appreciated :).

Viewing all articles
Browse latest Browse all 4084

Trending Articles



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