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.

Are you using Unity Script?

–

I am using C#.

–

1 Answer

1

Use custom defines in your player settings:

I have read the documentation but I am using Unity 3.5.6f4 and I cannot find that custom defines box on it.

–