After Upgrade to Unity 3

Hi all,

I have been using the previous version of Unity3d 2.6 and recently upgraded to unity 3 and i realize that my codes are unable to work after they have done the upgrade for me when they said that my codes are saved using an earlier version.

The error that is being displayed is this:
InvalidProgramException: Invalid IL code in UserInterface:OnGUI (): IL_0416: add

I am very sure that it is working on unity2.6 so i just don’t understand what is this error. Pls help, Thanks

This error was about to make me go insane! It suddenly came up after I had been compiling and running the code for several days. I boiled the error down to these lines.

	var names : Array = new Array();
	names.Push("John");
	print(0 + nameID[0]);

Perhaps that can help you debug your project

Hey thanks. After long hours of trying i also realize the error only appears at areas where i have the arrays and i am pushing data into it. Anyway thks. I have reverted back to 2.6 since my project is able to work fine throughout using it.