- Home /
How to tell indie from pro?
I have two machines I work on, one with indie, one with pro, and I need to share scripts. Sometimes I use functions that are no available on indie, or need to be done differently. I want to use the same script on both machines. I know I can tell whether I'm on iphone, mac, or windows, but is there a good way to tell if I'm on indie or pro?
Answer by Thomas Hentschel Lund · Aug 03, 2010 at 06:43 AM
AFAIK there is no way to do this easily as with iPhone etc.
What you can do, is to use reflection to test if a certain method is available or not, and thus determine if its a Pro or Indie.
BUT - unless the license changed recently (within the last 1.5 years), this is not allowed at all. If one of your team uses pro, all have to use it. It might have changed, but thats how it was when I got Unity at least.
At the moment, I A$$anonymous$$ the $$anonymous$$m. Using $$anonymous$$ac (with Pro/iPhone), but Windows for general development of assets (it's just easier than $$anonymous$$ac for too many reasons, sorry). I'm not paying twice for Pro, TOS or not.
I'm rather new to Reflection, don't suppose you'd know the syntax on such a thing? Another idea I had was to wrap a Pro call in a try/catch, but that seems rather heavy-handed.
License allows for 2 installations using same license key as long as you are the user. So you can simply install same license on both machines. (And no - I'm not the license police. Just a friendly soul telling how Unity decided their license)
$$anonymous$$-thanks, I didn't realize that. It still doesn't solve my problem (as I have PC and $$anonymous$$ac at office, but use laptop at home/road to work too). Anyway, if/when I get the actual code I'll post it here.
Plus you might want to test things on the free version in case you plan to share with the community, so still useful to know regardless.