Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BuildCallbackVersionAttribute

Defines a version number for build callbacks.
Read time 3 minutesLast updated 5 days ago

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