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

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

IShouldIncludeInBuildCallback

interface in UnityEditor.PackageManager

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.

Did you find this page useful? Please give it a rating: