Version: 2022.1

PlayerSettings.SetIl2CppCompilerConfiguration

切换到手册
public static void SetIl2CppCompilerConfiguration (Build.NamedBuildTarget buildTarget, Il2CppCompilerConfiguration configuration);
public static void SetIl2CppCompilerConfiguration (BuildTargetGroup targetGroup, Il2CppCompilerConfiguration configuration);

参数

buildTarget The NamedBuildTarget.
targetGroup 构建目标组。
configuration 编译器配置。

描述

Sets compiler configuration used when compiling generated C++ code for a particular build target.

BuildTargetGroup is marked for deprecation in the future. Use NamedBuildTarget instead.