Version: 2022.2
LanguageEnglish
  • C#

UserBuildSettings.copyReferences

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static bool copyReferences;

Description

Enable this setting to copy Unity engine library references from the Unity install path to the generated solution.

Your built project requires references to Unity engine libraries. These can either be copied into your built project, or referenced from your local Unity installation path.

If you enable this setting, Unity copies those engine libraries into the built project, making the built project portable and self-contained. If you disable this setting, Unity adds links from your build to the engine libraries within your local Unity installation path, which saves disk space but makes your build depend on your local Unity installation path.