# Build Game Level Limit?

Hello All,

Is there a limit on levels when building a game?

Thanks,
Ray

Nope - we don’t like arbitrary limits

As Application.LoadLevel can take an integer index number to a scene, the theoretical limit is int.MaxValue, or 2,147,483,647.

Hopefully no one will try to approach that number, freyr! :lol:

Actually, I forgot about scene 0, which makes the limit int.MaxValue+1, or 2,147,483,648.

Why is it that int.MaxValue = 2,147,483,647, incidently?

Thats a weird number
AC

It’s not a weird number in base 2, which is what computers work with, rather than decimal. (The largest positive signed number you can get with 32 bits.) Basically the same reason why you see texture sizes being 512, 1024, 2048, etc. The funny thing is I’ve been working with computers long enough that I see values like 1,048,576 and it looks like a nice round number to me.

–Eric

Clearly, Unity needs to go 64-bit so its users can have more options when it comes to number of levels.

:lol:

lol, clearly, marble!

i’ve been grilling my 5 year old for the past couple years with what’s 1024/128? 4096/512? 128/16? the magic number in our house is now 2^3 cough i’m ot!

I did that too and if you’re not careful you’ll end up with a nine year old who knows the Pythagorean Theorum, all that stuff about circles (diameter x Pi etc), and is now tackling sine, cosine and tangent on his own. I knew ther’d be trouble when one day in the car he corrected me and told me that the six “types” of fundamental particles are called flavours. Eh gad, what have I created?!

A demon.

oh damn - he already knows the PT!