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
SetManagedStrippingLevel(BuildTargetGroup, ManagedStrippingLevel)
Sets the managed code stripping level for specified build target.
public static void SetManagedStrippingLevel(BuildTargetGroup targetGroup, ManagedStrippingLevel level)
Parameters
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.
Additional Resources: PlayerSettings.GetManagedStrippingLevel, Managed code stripping.
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
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.
Additional Resources: PlayerSettings.GetManagedStrippingLevel, Managed code stripping.
BuildTargetGroup is marked for deprecation in the future. Use NamedBuildTarget instead.