文档

Unity Engine

Unity Engine

SetManagedStrippingLevel

Sets the managed code stripping level for specified build target.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

SetManagedStrippingLevel(BuildTargetGroup, ManagedStrippingLevel)

Sets the managed code stripping level for specified build target.
警告
Deprecated. Use SetManagedStrippingLevel(NamedBuildTarget buildTarget, ManagedStrippingLevel level) instead
public static void SetManagedStrippingLevel(BuildTargetGroup targetGroup, ManagedStrippingLevel level)

Parameters

targetGroup


The desired managed code stripping level.

Remarks

During the build process, Unity strips unused code from your project's managed and dynamically linked libraries. Stripping code results in a much smaller executable but can remove code you'd like to use.
The ManagedStrippingLevel Enum defines the options you can use to specify the rate at which Unity should remove unused code or to disable code stripping altogether.
BuildTargetGroup is marked for deprecation in the future. Use NamedBuildTarget instead.

SetManagedStrippingLevel(NamedBuildTarget, ManagedStrippingLevel)

Sets the managed code stripping level for specified build target.
public static void SetManagedStrippingLevel(NamedBuildTarget buildTarget, ManagedStrippingLevel level)

Parameters


The desired managed code stripping level.

Remarks

During the build process, Unity strips unused code from your project's managed and dynamically linked libraries. Stripping code results in a much smaller executable but can remove code you'd like to use.
The ManagedStrippingLevel Enum defines the options you can use to specify the rate at which Unity should remove unused code or to disable code stripping altogether.
BuildTargetGroup is marked for deprecation in the future. Use NamedBuildTarget instead.