Documentation

Unity Engine


Unity Engine


EntityRemapUtility

Utility class to remap Entity IDs.
Read time 1 minuteLast updated 14 hours ago

Definition

  • Type: Class
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static class EntityRemapUtility

Static Methods

Method

Description

AddEntityRemappingAdds a new EntityRemapUtility.EntityRemapInfo element to a remapping array.
AppendBufferEntityPatchesAdds EntityRemapUtility.BufferEntityPatchInfo elements for each of the input offsets.
AppendEntityPatchesAdds EntityRemapUtility.EntityPatchInfo elements for each of the input offsets.
CalculateFieldOffsetsUnmanagedCalculates the field offsets.
GetTargetsGets the array of Entity targets from an array of EntityRemapUtility.EntityRemapInfo.
HasReferencesManagedChecks if a type has any Entity, BlobAssetReferenceData or UnityObjectRef<T> references.
PatchEntitiesApplies a set of entity patches.
PatchEntitiesForPrefabApplies a set of patches, remapping the internal prefab entities.
RemapEntityRemaps a source Entity using the EntityRemapUtility.EntityRemapInfo array.
RemapEntityForPrefabRemaps the internal Entity references when instantiating a prefab.

Structs

Struct

Description

EntityRemapUtility.BufferEntityPatchInfoContains the information for applying a patch on a DynamicBuffer in a chunk.
EntityRemapUtility.EntityBlobRefResultReports whether an Entity blob has any Entity or BlobAssetReferenceData references.
EntityRemapUtility.EntityPatchInfoContains the information for applying a patch on a chunk.
EntityRemapUtility.EntityRemapInfoStructure mapping a target entity to an entity in the current world.