cb | Object 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.