Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

IShouldIncludeInBuildCallback

interface in UnityEditor.PackageManager

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Interface used by the Package Manager to request build information about packages.

The ShouldIncludeInBuild method defines the interface for callback functions invoked by the Package Manager as it process each file in the package identified by PackageName.

Register your implementation with the Package Manager using BuildUtilities.RegisterShouldIncludeInBuildCallback. You can only register one implementation of this interface per package.

See Also: BuildUtilities.

Properties

PackageNameThe package name.

Public Methods

ShouldIncludeInBuildDefines the signature for the function invoked by the Package Manager to determine whether a package file should be included or excluded from a project build.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答