Hero background image
Unity Source Code
Understand, optimize, and debug code faster, and take projects further by tailoring the engine to your needs.
Source Code

See what’s under the hood

With Unity Source Code, you get greater insight into Unity’s inner workings. Whether you’re optimizing code, debugging, or want to deploy custom code, this insight helps you to do what’s best for your project and to get it done faster.

Source Code

Included in Unity Enterprise

The Unity Enterprise plan provides you with Source Code Access alongside the support and tools you need to manage large-scale, ambitious projects.

Key benefits
Write better, optimized code

You can use Source Code Access how you want – whether that’s improving old processes or understanding data structures of graphics rendering – and doing so with the latest updates and bug fixes.

Debug and find solutions faster

Debug your Editor and runtime code more efficiently, without waiting for support. Get to the bottom of bugs and performance issues faster using flags and breakpoints, and use Unity’s own automated tests and test framework to monitor the stability of your project.

Partner with us on code

Recommend engine improvements, share your knowledge, and better contextualize your support needs. Provide your source code samples and best practices to others, make code suggestions to your Success Advisor, and collaborate more closely with Unity support teams.

Ship custom code with Adapt

Launch modified or custom code based on your project’s needs using Source Code Adapt rights. Deploy your code using internal APIs and modify private data structures to delete, override, or extend functions. An Integrated Success plan is required; contact sales for more information.

V Rising

Source code unlocked Stunlock Studios’s ambitions

See how Stunlock Studios achieved their vision for the acclaimed game V Rising using DOTS and Unity Source Code to fix bugs, improve performance, and optimize frame rate within GPU constraints.

Source code plans

There are two plans to fit your needs, Source Code Access and Source Code Adapt. Source Code Access, included in Unity Enterprise, empowers you to better understand, optimize, and debug your code – and do so faster. With Adapt, you get Access advantages, plus the ability to ship your custom code.

Included with Access and Adapt:

  • Access, view, and clone Unity Source Code
  • Build from Unity Source Code including Editors, Players, tooling, and project files
  • Debug your projects more easily by referring to the Unity source code
  • Modify and optimize the build process or other internal tooling
  • Run automated tests from the Unity repository using included test frameworks
  • Add features or functionality by modifying the game engine or packages

Included with Adapt only:

+ Launch and ship your projects using modified Unity Source Code

What’s inside the plans
Unity Editor and runtime
Bee build system
Unity APIs
Unity automated tests and frameworks
Unity Remote
IL2CPP
Partner platforms
Get started with Unity Source Code
Source code
Purchase Unity Source Code

Contact the sales team to get Source Code Access as part of Unity Enterprise plans or Source Code Adapt rights.

Source code
Access from the Admin Portal

Using your Unity ID, view Unity Source Code in the Admin Portal. Create a personal access token, then download or clone the repository to your local machine.

Source code
Build where you work

Build Unity to get started debugging your project with Access, or making custom versions of the game engine with Adapt.

With Source Code Access, we saw that our workflows were fighting the Editor, and modified them to work faster and more efficiently.
MATT KRAMER / MONOMI PARKEngineering Director
Once you hit 470 million MAUs and 20 billion downloads, every megabyte counts. It’s key that our games are as optimized as possible, and source code has been very useful.
JON PREMIK / OUTFIT7Director of Engineering
Source Code
Go deeper with source code

Get in touch with sales to gain access to Unity Source Code through a Unity Enterprise plan.

Frequently asked questions

What is Source Code Access?

+

What’s the difference between Access and Adapt?

+

How can I get Unity Source Code?

+

I have the Unity Enterprise plan. How do I activate Source Code Access?

+

If I have previously purchased a subscription to access Source Code, will my access be impacted?

+

How do I access Unity Source Code?

+

What support is available for Unity Source Code?

+

How do I get support for Unity Source Code?

+

How is Unity Source Code different from the existing public C# reference published online?

+

Does Unity use C++ or C#?

+

Is Unity open source?

+

Are there other public resources I can reference?

+