Does Unity support extension methods?

I’d like to use an extension method on a c# generic list for managing a node system but before I start does anybody know if Unity Supports them?

Maybe I should have searched first. I’ve looked at a few threads and its seems the answer is YES :slight_smile:

The answer is yes. Unity uses plain C# with mono. As far as i know the only thing you can’t use is unsafe code but when you have Unity pro you can use native code plugins as well.

One caveat you should be aware of, even though it probably won’t cause you any problems: Unity strips namespaces from assemblies that it loads. Everything goes into the default namespace and is thus globally using’d. So your extension methods will be visible from every script in your project.