Version: 2023.2

PlayerSettings.GetApiCompatibilityLevel

切换到手册
public static ApiCompatibilityLevel GetApiCompatibilityLevel (Build.NamedBuildTarget buildTarget);

参数

buildTarget The NamedBuildTarget.

返回

ApiCompatibilityLevel Returns the ApiCompatibilityLevel associated with a NamedBuildTarget.

描述

Gets .NET API compatibility level for specified build target.


Obsolete public static ApiCompatibilityLevel GetApiCompatibilityLevel (BuildTargetGroup buildTargetGroup);

描述

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