• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by JoshOClock · Mar 27, 2011 at 04:49 PM · versions

Easiest way to do Pro vs. Free or Lite versions of game?

I want to set up my Pro and Lite versions so they require as few changes as possible. I don't want to have to edit the code or remove objects if at all possible.

Ideally, let's say, for Ads I could just check the Bundle ID at run time and decide not to start the ads up. Is that possible? Anyone have better suggestions?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Statement · Mar 27, 2011 at 05:08 PM 0
Share

Not entirely sure what you want to achieve here... Pro and Free versions of your game? Does it have to do with Unity3D Pro and Unity3D Free? You don't have to make a game for "pro" and for "free", unless you want to share your unity project with people. Any customers will be able to play your game even if it was made in Pro.

avatar image Peter G · Mar 27, 2011 at 06:11 PM 0
Share

I think he is referring to iOS. A free demo version and a Paid full version.

avatar image JoshOClock · Mar 29, 2011 at 09:39 PM 0
Share

What Peter said.

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by _Petroz · Mar 28, 2011 at 02:01 AM

If you are using C# you can maintain two separate versions with slightly different code using preprocessor directives. This is not only easy, it's also low-maintence which is the most important thing when branching an application into two versions.

Here is an example using #if #else and #endif

#define LITE true

void Start() { #if LITE // Less health in LITE version playerHealth = 50; #else playerHealth = 100; #endif }

void Update() { #if !LITE // health regen playerHealth += 5 * Time.deltaTime; #endif }

When you want to build a LITE version set

#define LITE true

When you want to build a PRO version set

#define LITE false
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JoshOClock · Mar 28, 2011 at 03:35 PM 0
Share

I was hoping maybe there was some way built into Unity to test. Like I mentioned, maybe the Bundle ID was available. This looks like the best bet. Thanks.

avatar image
0

Answer by Justin Warner · Mar 27, 2011 at 05:43 PM

I think you mean like, in the Apple app stores, they have the Lite version, and the Full version. So you have like, the version with all the features, and a version with specialized things, such as no ads, maybe more money to start off with, etc.

So really, you'd just code the free version first. Then save that as the "Lite" version, then you add in/take out what you don't want for the "Pro" version. Is this what you mean? I mean, it's common sense, and differs depending on what kind of game it is and what you deem to be appropriate and what not.

Comment and I can help more, but good luck!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by DaveA · Mar 27, 2011 at 08:17 PM

Is this what you mean: http://answers.unity3d.com/questions/17077/how-to-tell-indie-from-pro

If you mean a paid version vs free version (ad supported) of Your app, yeah, you can build in a boolean or something that says which version it is, then check it in various places in your code where you want to disable the paid features. you can deactivate gameobjects, scripts, whatever, enable adds, different GUI's whatever. This assumes you have two different builds of it. If you want one app that gets 'activated' online, that's a different kettle of fish. I'm thinking of putting such a solution on the Asset Store.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

do you know what version of unity was released in the end of 2012? 0 Answers

Unity Pro vs Unity Free License Teams Issue 2 Answers

Paid Unity Pro Work for Someone who has Unity Free? 3 Answers

Water pro in unity free? 1 Answer

Transfering from Unity Free to Unity Pro? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges