NullReferenceException: Object reference not set to an instance of an object

You say you’ve got the same generic error which doesn’t mean it’s related to this thread which is years old. You’re also hijacking the thread. You should also use code-tags as walls of text are impossible to read. Your post also has nothing to do with 2D features and is just a generic scripting error which should be posted on the scripting forum. Also note you’ve not even stated which line your error is on; something which is part of the error or if you’ve tried to debug it etc.

Thanks.