Version: 2023.1

PlayerSettings.SetApiCompatibilityLevel

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

参数

buildTarget The NamedBuildTarget.

描述

Sets .NET API compatibility level for specified build target.


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

描述

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