Version: 2019.4

BuildUtilities.RegisterShouldIncludeInBuildCallback

マニュアルに切り替える
public static void RegisterShouldIncludeInBuildCallback (PackageManager.IShouldIncludeInBuildCallback cb);

パラメーター

cbObject of a class that implements the IShouldIncludeInBuildCallback interface.

説明

Registers a callback object for a package.

During a build operation, the Unity Package Manager invokes the IShouldIncludeInBuildCallback.ShouldIncludeInBuild method for each managed plugin (DLL) in the package whose name is IShouldIncludeInBuildCallback.PackageName. The callback implementation must return true for plugins that should be included in the build and false for plugins that should be excluded from the build.

Only one IShouldIncludeInBuildCallback callback object can be registered per package.

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