Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetIl2CppLTOMode(NamedBuildTarget, Il2CppLTOMode)

Sets link time optimization (LTO) mode for IL2CPP builds for the build target you specify.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void SetIl2CppLTOMode(NamedBuildTarget buildTarget, Il2CppLTOMode mode)

Parameters

buildTarget

The name of the build target you want to set the LTO mode for.

The LTO mode to apply to the IL2CPP build.