ドキュメント

Unity Engine

Download Unity

Unity Engine

ManagedStrippingLevel

Defines how aggressively Unity strips unused managed (C#) code.
読み終わるまでの所要時間 1 分最終更新 7日前

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public enum ManagedStrippingLevel

Remarks

When Unity builds your game or application it can strip unused code from the managed dynamically linked libraries used in the project. Stripping code can make the resulting executable significantly smaller, but can sometimes mistakenly remove code that is actually used. The ManagedStrippingLevel Enum defines the options you can use when specifying how aggressively Unity should remove unused code.

Fields

Value

Description

DisabledDo not strip any code.
HighUnityLinker will strip as much as possible. This will further reduce code size beyond what Medium can achieve. However, this additional reduction may come with tradeoffs. Possible side effects may include, managed code debugging of some methods may no longer work. You may need to maintain a custom link.xml file, and some reflection code paths may not behave the same.
MediumRun UnityLinker in a less conservative mode than Minimal. This will further reduce code size beyond what Minimal can achieve. However, this additional reduction may come with tradeoffs. Possible side effects may include, having to maintain a custom link.xml file, and some reflection code paths may not behave the same.
MinimalThe class libraries, UnityEngine, and Windows Runtime assemblies will be stripped. All other assemblies are copied.