I'm new to Unity and when i create a new C# file at the top there's always:
Must be a very simple tweak but i can't figure it out so help please
First of all in .NET / Mono you can't "include" other classes. "using" is just a shortcut. It tells the compiler when it can't find a certain class in the current namespace to look in those given by the using statement.
You can always write the full classname without the help of any "using"(C#) / "import"(UnityScript).
Instead of including the "System.Collections.Generic" namespace to use the List.<> class you can also write:
using / import are just helpers to shorten the classnames.
Your second warning about "UnityEditor" also tells me that you included the UnityEditor namespace. Keep in mind that the classes defined in UnityEditor are not part of the engine and should only by used in editor-scripts, otherwise you can't build your project.
answered Sep 17 '11 at 08:22 PM