Here is the very top of my Unity JS Script:
#pragma strict
var player:GameObject;
var maxtiles:int=17;
var tilesTerrain : GameObject[,] = new GameObject[maxtiles,maxtiles];
var tilesOverlay : GameObject[,] = new GameObject[maxtiles,maxtiles];
Previously I had been setting maxtiles to 10. well, everytime I run this script,
It still defaults to the old ‘10’ value within all future references in Startup(), etc… UNLESS I change to the following:
#pragma strict
var player:GameObject;
var maxtiles:int=17;
maxtiles=17;
var tilesTerrain : GameObject[,] = new GameObject[maxtiles,maxtiles];
var tilesOverlay : GameObject[,] = new GameObject[maxtiles,maxtiles];
Then it is actually set to 17!? If I pull that middle line back out, It goes back to the age-old setting of 10… wow. I’m sure i can’t duplicate this on a clean project, it must be some complex caching/queuing issue? Is there some “Full Refresh” or something I can run to fully rebuild stuff? I’m a Unity Newbie.
I’ve saved the script files, Even tried full .exe build and it still pops a 10 value up if that second assignment missing.