Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


C# language support

Read time 1 minuteLast updated 12 days ago

Burst supports a subset of C#, which is referred to as High Performance C# (HPC#) in the Unity context.

Topic

Description

HPC# overviewUnderstand how HPC# works with Burst.
Static read-only fields and static constructor supportUse static read-only fields and static constructors in Burst code.
String supportUse strings in Burst code.
Calling Burst-compiled codeCall Burst compiled code from managed code.
Function pointersUse function pointers to work with dynamic functions.
C#/.NET type supportUnderstand the supported C# features.
C#/.NET System namespace supportUnderstand what's supported in the System namespace.
DllImport and internal callsOverview of
[DllImport]
, which is for calling native functions.
SharedStatic structUse SharedStatic to share static mutable data.

Additional resources