Version: 2019.1

StrippingInfo.GetReasonsForIncluding

Switch to Manual
public IEnumerable<string> GetReasonsForIncluding (string entityName);

Parameters

entityNameThe name of an engine module, class, or other entity present in the build.

Returns

IEnumerable<string> A list of modules, classes, or other entities that caused the provided entity to be included in the build.

Description

Returns the list of dependencies or reasons that caused the given entity to be included in the build.

The returned list of strings may include names of components, internal engine objects, other modules, or other human-readable reasons. To obtain further information, you can pass each string back into GetReasonsForIncluding again.

For example, calling GetReasonsForIncluding("Physics Module") may return a list that includes "Rigidbody", and you can then call GetReasonsForIncluding("Rigidbody") to get more information about which Scenes or assets are using the Rigidbody component.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961