- Home /
Using Pragma to slit app in two
I have a free version of my app and a paid version. I was wondering if it is possible to use pragma script to compile them differently based on my package name
e.g.
if(package name = free)
compile with this code
else
compile without that code
I have not used pragma much so I am wondering if it is possible.
Answer by Graham-Dunnett · Apr 12, 2013 at 09:55 PM
Use custom defines in your player settings:
http://docs.unity3d.com/Documentation/Manual/PlatformDependentCompilation.html
I have read the documentation but I am using Unity 3.5.6f4 and I cannot find that custom defines box on it.
Your answer
Follow this Question
Related Questions
Why does my Android building time increase when switching from 5.3.6f1 to 5.4.0f3? 0 Answers
How to detect the Android version of the user device? 2 Answers
My game Does not run on older android versions. 1 Answer
Android Bundle Version and Bunde Version Code? 0 Answers
Finding the version of unity player used 2 Answers