Mono Compatibility Manual     Reference     Scripting  
Scripting
Mono Compatibility

You can use .NET class libraries in the scripts you write for Unity. Depending on your .NET Compatibility level selected in your project settings, Unity supports more, or less of the full class libraries. This page contains a list of which classes and methods are available for each .NET compatibility level setting.

  • Namespace System

  • Namespace System.Runtime.InteropServices

  • Namespace System.Reflection

  • Namespace System.Runtime.CompilerServices

  • Namespace System.Diagnostics

  • Namespace System.Security.Permissions

  • Namespace Microsoft.Win32

  • Namespace Microsoft.Win32.SafeHandles

  • Namespace System.Globalization

  • Namespace System.Collections

  • Namespace System.Configuration.Assemblies

  • Namespace System.Deployment.Internal

  • Namespace System.Diagnostics.CodeAnalysis

  • Namespace System.Diagnostics.SymbolStore

  • Namespace System.IO

  • Namespace System.IO.IsolatedStorage

  • Namespace System.Reflection.Emit

  • Namespace System.Resources

  • Namespace System.Runtime

  • Namespace System.Runtime.ConstrainedExecution

  • Namespace System.Runtime.Hosting

  • Namespace System.Runtime.InteropServices.ComTypes

  • Namespace System.Runtime.Remoting

  • Namespace System.Runtime.Remoting.Activation

  • Namespace System.Runtime.Remoting.Channels

  • Namespace System.Runtime.Remoting.Contexts

  • Namespace System.Runtime.Remoting.Lifetime

  • Namespace System.Runtime.Remoting.Messaging

  • Namespace System.Runtime.Remoting.Metadata

  • Namespace System.Runtime.Remoting.Metadata.W3cXsd2001

  • Namespace System.Runtime.Remoting.Proxies

  • Namespace System.Runtime.Remoting.Services

  • Namespace System.Runtime.Serialization

  • Namespace System.Runtime.Serialization.Formatters

  • Namespace System.Runtime.Serialization.Formatters.Binary

  • Namespace System.Runtime.Versioning

  • Namespace System.Security

  • Namespace System.Security.AccessControl

  • Namespace System.Security.Cryptography

  • Namespace System.Security.Cryptography.X509Certificates

  • Namespace System.Security.Policy

  • Namespace System.Security.Principal

  • Namespace System.Text

  • Namespace System.Threading

  • Namespace System.Collections.Generic

  • Namespace System.Collections.ObjectModel

  • Namespace System.Linq.Expressions

  • Namespace Mono.Security.Cryptography

  • Namespace System.Linq

  • Namespace System.IO.Pipes

  • Namespace Microsoft.CSharp

  • Namespace Microsoft.VisualBasic

  • Namespace System.CodeDom

  • Namespace System.CodeDom.Compiler

  • Namespace System.Collections.Specialized

  • Namespace System.ComponentModel

  • Namespace System.ComponentModel.Design

  • Namespace System.ComponentModel.Design.Serialization

  • Namespace System.Configuration

  • Namespace System.IO.Compression

  • Namespace System.IO.Ports

  • Namespace System.Media

  • Namespace System.Net

  • Namespace System.Net.Cache

  • Namespace System.Net.Configuration

  • Namespace System.Net.Mail

  • Namespace System.Net.Mime

  • Namespace System.Net.NetworkInformation

  • Namespace System.Net.Security

  • Namespace System.Net.Sockets

  • Namespace System.Security.Authentication

  • Namespace System.Text.RegularExpressions

  • Namespace System.Timers

  • Namespace System.Web