Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetManagedStrippingLevel

Sets the managed code stripping level for specified build target.
Read time 1 minuteLast updated 10 days ago

Definition

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

SetManagedStrippingLevel(BuildTargetGroup, ManagedStrippingLevel)

Sets the managed code stripping level for specified build target.
Warning
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.