Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

OptimizeFor

enumeration

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

Description

How the code should be optimized.

Properties

Property Description
Default The default optimization mode - uses OptimizeFor.Balanced.
Performance Optimize for performance - the compiler should make the most optimal binary possible.
Size Optimize for size - the compiler should make the smallest binary possible.
FastCompilation Optimize for fast compilation - the compiler should perform some optimization, but take as little time as possible to do it.
Balanced Optimize for balanced compilation - ensuring that good performance is obtained while keeping compile time as low as possible.