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 |
|---|---|
| AddEntityRemapping | Adds a new EntityRemapUtility.EntityRemapInfo element to a remapping array. |
| AppendBufferEntityPatches | Adds EntityRemapUtility.BufferEntityPatchInfo elements for each of the input offsets. |
| AppendEntityPatches | Adds EntityRemapUtility.EntityPatchInfo elements for each of the input offsets. |
| CalculateFieldOffsetsUnmanaged | Calculates the field offsets. |
| GetTargets | Gets the array of Entity targets from an array of EntityRemapUtility.EntityRemapInfo. |
| HasReferencesManaged | Checks if a type has any Entity, BlobAssetReferenceData or UnityObjectRef<T> references. |
| PatchEntities | Applies a set of entity patches. |
| PatchEntitiesForPrefab | Applies a set of patches, remapping the internal prefab entities. |
| RemapEntity | Remaps a source Entity using the EntityRemapUtility.EntityRemapInfo array. |
| RemapEntityForPrefab | Remaps the internal Entity references when instantiating a prefab. |
Structs
Struct | Description |
|---|---|
| EntityRemapUtility.BufferEntityPatchInfo | Contains the information for applying a patch on a DynamicBuffer in a chunk. |
| EntityRemapUtility.EntityBlobRefResult | Reports whether an Entity blob has any Entity or BlobAssetReferenceData references. |
| EntityRemapUtility.EntityPatchInfo | Contains the information for applying a patch on a chunk. |
| EntityRemapUtility.EntityRemapInfo | Structure mapping a target entity to an entity in the current world. |