文档

Unity Engine

Unity Engine

BuildCallbackVersionAttribute

Defines a version number for build callbacks.
阅读时间3 分钟最后更新于 1 个月前

Definition

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]public class BuildCallbackVersionAttribute : Attribute

Remarks

Unity uses this version number to detect when the callback implementation changes and rebuilds the affected results. Increment the version number when you change the implementation of the callback. If you don't apply the attribute, Unity uses version 1.
If you apply this attribute to a class that implements the deprecated IProcessSceneWithReport interface, migrate the class to AssetPostprocessor.OnProcessScene(Scene, SceneImportContext) and override AssetPostprocessor.GetVersion instead.
Additional Resources: AssetPostprocessor.GetVersion, IProcessSceneWithReport, EditorBuildSettings.UseParallelAssetBundleBuilding

Constructors

Constructor

Description

BuildCallbackVersionAttribute(System.UInt32)Constructor taking the version number for the callback.

Properties

Property

Description

VersionVersion number.

Inheritance

Inherited Members