Version: 2018.4

BuildUtilities.RegisterShouldIncludeInBuildCallback

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

パラメーター

cbObject of a class that implements the IShouldIncludeInBuildCallback interface.

説明

Register a callback object for a package.

The Unity Package Manager invokes the IShouldIncludeInBuildCallback.ShouldIncludeInBuild callback for each file in the package identified by IShouldIncludeInBuildCallback.PackageName. The callback implementation must return true for resources that should be included in the build and false for resources that should be excluded.

Only one IShouldIncludeInBuildCallback callback object can be registered for each package.

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