Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Il2CppLTOMode

LTO (Link Time Optimization) mode options for IL2CPP builds.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public enum Il2CppLTOMode

Remarks

Supported Platforms:
  • Linux
  • EmbeddedLinux
This setting controls the level of link-time optimization (LTO) applied during the build process. This setting applies only if you set Il2CppCompilerConfiguration to Il2CppCompilerConfiguration.Master.

Fields

Value

Description

FullFull LTO mode. This mode performs the most link-time optimizations, potentially improving runtime performance at the expense of longer build times.
NoneNo LTO mode is applied.
ThinThin LTO mode. This mode performs fewer link-time optimizations compared to Full LTO, resulting in faster build times but potentially lower runtime performance.