Dynamic variable names

This might be answered but honestly couldn't find an answer.

How do I create dynamic variable names inside a loop for example? Or is this even possible?

for(i = 0; i < 10; i++) { var number+i = i; }

if you really want dynamic names you can use a dictionary and then add keys with dynamic names with their values. use arrays because they are the fastest solution. if you need to access array elements much and need to search much in the array just use dictionaries.

Not sure to fully understand your question, but from the code sample you provide, it seems that you're looking for arrays.

var number:int[] = new int[10];

for(i = 0; i < 10; i++)
    number *= i;*
*```*
*<p>See here for a documentation on arrays :*
*<a href="http://unity3d.com/support/documentation/ScriptReference/Array.html" rel="nofollow">http://unity3d.com/support/documentation/ScriptReference/Array.html</a></p>*