GUI.Window wont change size

I dont think im going crazy, but if i dont figure this out i just might!

Im not sure what the problem is but im trying to make a simple GUI.Window. Copied the script straight from the Online manual for it and changed a few values in the windowRect0 variable.

var windowRect0 = Rect(500, 500, 220, 360);

function OnGUI () {
    // Register the window. We create two windows that use the same function
    // Notice that their IDs differ
    windowRect0 = GUI.Window (0, windowRect0, DoMyWindow, "Tool Box");
}

// Make the contents of the window
function DoMyWindow (windowID : int) {
    if (GUI.Button (Rect (10,20,60,60), "Hello World"))
        print ("Got a click in window " + windowID);  
}

It wont update in my scene correctly. Im not sure how i did it, but it updated once and now its locked onto those numbers, no mater how many times i change them, redo the script, i cant reproduce what happened or change the size of the window at all. Look at the screen shot and compare the sized and script. What am i missing???! Thanks for taking a look!

The initial value of public variables is set by the inspector. If you want to change the value by code, you have to do it inside a function, not when it’s being declared.

–Eric

genius… Thank You for pointing out my rookie mistake! Paying more attention to private/public now! Thanks again.

Setting the variable to private will work also.