Documentation

Unity Engine


Unity Engine


EntityManagerDifferOptions

Parameters used to configure the the execution of the differ.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Enum
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
[Flags]public enum EntityManagerDifferOptions

Fields

Value

Description

ClearMissingReferencesIf set; all references to destroyed or missing entities will be set to Entity.Null before computing changes.
DefaultThe default set of options used by the EntityDiffer
FastForwardShadowWorldIf set; the shadow world will be updated with the latest changes.
IncludeForwardChangeSetIf set; the resulting EntityChanges will include the forward change set.
IncludeReverseChangeSetIf set; the resulting EntityChanges will include the reverse change set.
NoneShortcut for "no options required".
UseReferentialEqualityIf set, components are not compared bit-wise. Bit-wise comparison implies that two components that have references to entities that have the same GUID but different indices/versions are different. Similarly blob asset references to blob assets that have the same hash but live at different addresses will be considered different as well. This is often not desirable. For these cases, it is more apt to check that GUIDs and hashes match.
ValidateUniqueEntityGuidIf this flag is set; the entire world is checks for duplicate EntityGuid components.