How to detect Unity Pro version? 😕

Hi all! :smile:

How to detect which version of Unity used - Pro or Indie? There is example of code where is a problem:

  IEnumerator LoadLevel(string newStateName)
  {
   loadingSplash.Draw = true;

/// in this place i have got Error: Asynchronous Background loading is only supported in Unity Pro.
   AsyncOperation async = Application.LoadLevelAsync(newStateName);
   while (!async.isDone)
   {
    // animate here
    yield return 0;
   }
   current = newStateName;
.....
}

all works fine, no problem with loading, but how to check Unity version and predict those warning messages?

all will be working fine right, unity will just fallback to non async if not supported invisibly

really detecting is not possible, what you can do at best is check the graphics capabilities is render textures work cause technically there is no machine that does not support it but thats able to run unity 3, yet if you are not on pro, the render texture capability check will always return false cause its a pro only feature

note whether there is a large sum of cash missing from your bank account

bool UnityProInUse = false;

void update ()
{
if(curCash < startCash)
{
UnityProInUse = true;
}
}

Thx for the replies, will plane to check your solution, Dreamora!

I realize this is old, but HasProLicense works for me: HasProLicense