Version: 2022.1

PlayerSettings.SetApiCompatibilityLevel

切换到手册
public static void SetApiCompatibilityLevel (Build.NamedBuildTarget buildTarget, ApiCompatibilityLevel value);

参数

buildTarget The NamedBuildTarget.

描述

Sets .NET API compatibility level for specified build target.


public static void SetApiCompatibilityLevel (BuildTargetGroup buildTargetGroup, ApiCompatibilityLevel value);

描述

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