Thanks for trying but there is no problem with the "Length" parameter, only the first letter needs to be capitalised, several variations show this is the only spelling that unity recognises as an internal command-thingy.
Remove the extra semicolon on the line where the loop is declared:
var TileNumberArray;
TileNumberArray = new int();
TileNumberArray.Length = 80;
static var ResetButtonSetting = 1;
function Update () {
for(TileArrayChoice=1;TileArrayChoice < TileNumberArray.Length; TileArrayChoice++) // ; <-- removed
{
TileNumberArray[TileArrayChoice] = ResetButtonSetting;
}
}
==
[Addendum] Now that the script actually compiles you will be able to run it. This will give you some new errors which indicate that early responses you got were also on the right track: the length parameter should not be capitalized, and the array declaration should be
Again, huge thanks to all those who have helped. For the sake of completion here is the finished code that provides no errors during runtime or otherwise;
var TileNumberArray;
TileNumberArray = new Array();
var TileArrayChoice;
static var ResetButtonSetting = 1;
function Update () {
for(TileArrayChoice=0;TileArrayChoice<81; TileArrayChoice++)
{
TileNumberArray[TileArrayChoice] = ResetButtonSetting;
}
}
whether it actually does what I expect it to do remains to be seen :-)
Again, a huge thanks to all
"I can see clearly now the rain has gone, I can see all obstacles in my way" - Johnny Nash