Documentation

Unity Engine


Unity Engine


BakingVersionAttribute

Initializes and returns an instance of BakingVersionAttribute
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

BakingVersionAttribute(string, int)

Initializes and returns an instance of BakingVersionAttribute
public BakingVersionAttribute(string userName, int version)

Parameters

userName

An identifier for the user that made the last change. Use this to enforce a merge conflict when two different users both try to bump the version at the same time.

version

The version number of the converter. Increase this to invalidate the cached versions of entity scenes that use the converter that is tagged with this attribute.

BakingVersionAttribute(bool)

Initializes and returns an instance of BakingVersionAttribute that is excluded from changing the Baking behaviour for an assembly.
public BakingVersionAttribute(bool excluded)

Parameters

excluded

Whether or not the Baker or Baking System is excluded from impacting the behaviour of the assembly. This means it does not contribute to an assembly causing re-bakes when changed, but also will not emit warnings if the assembly does use BakingVersion on other Bakers. With this constructor, only true is valid.