Documentation

Unity Engine

Unity Engine

Unity .NET implementation

Learn about the specific details and limitations of Unity's support for the .NET platform.
Read time 1 minuteLast updated 19 days ago

Unity integrates the .NET platform, which enables you to write performant C# code that runs on a wide range of target hardware configurations and platforms. The exact C# API surface available to your code and the level of support for specific APIs varies depending on the API compatibility level you select and the platforms and hardware configurations you build for. This section outlines the specific details and limitations of Unity's .NET integration, including API surface, C# compiler version, and language features.

Topic

Description

API compatibility levels for .NETChoose between the different .NET API compatibility levels that Unity can compile your project code against.
Add class library references to .NET FrameworkReference parts of the .NET class library API that Unity doesn't compile by default.
C# compiler and language version referenceDetails and limitations of the C# compiler and C# language version Unity uses.

Additional resources