Constructor EntityChangeSet
EntityChangeSet(int, int, int, NativeArray<EntityGuid>, NativeArray<ComponentTypeHash>, NativeArray<FixedString64Bytes>, NativeArray<EntityGuid>, NativeArray<PackedComponent>, NativeArray<FilteredArchetype>, NativeArray<PackedComponent>, NativeArray<PackedComponentDataChange>, NativeArray<byte>, NativeArray<EntityReferenceChange>, NativeArray<BlobAssetReferenceChange>, PackedManagedComponentDataChange[], PackedSharedComponentDataChange[], UnsafeAppendBuffer, NativeArray<LinkedEntityGroupChange>, NativeArray<LinkedEntityGroupChange>, NativeArray<BlobAssetChange>, NativeArray<ulong>, NativeArray<byte>)
Initializes a new instance of the EntityChangeSet.
Declaration
public EntityChangeSet(int createdEntityCount, int destroyedEntityCount, int nameChangedCount, NativeArray<EntityGuid> entities, NativeArray<ComponentTypeHash> typeHashes, NativeArray<FixedString64Bytes> names, NativeArray<EntityGuid> nameChangedEntityGuids, NativeArray<PackedComponent> addComponents, NativeArray<FilteredArchetype> addArchetypes, NativeArray<PackedComponent> removeComponents, NativeArray<PackedComponentDataChange> setComponents, NativeArray<byte> componentData, NativeArray<EntityReferenceChange> entityReferenceChanges, NativeArray<BlobAssetReferenceChange> blobAssetReferenceChanges, PackedManagedComponentDataChange[] setManagedComponents, PackedSharedComponentDataChange[] setSharedComponents, UnsafeAppendBuffer unmanagedSharedComponentData, NativeArray<LinkedEntityGroupChange> linkedEntityGroupAdditions, NativeArray<LinkedEntityGroupChange> linkedEntityGroupRemovals, NativeArray<BlobAssetChange> createdBlobAssets, NativeArray<ulong> destroyedBlobAssets, NativeArray<byte> blobAssetData)
Parameters
Type | Name | Description |
---|---|---|
int | createdEntityCount | Number of entities from the start of Entities that should be considered as created. |
int | destroyedEntityCount | Number of entities from the end of Entities that should be considered as destroyed. |
int | nameChangedCount | Number of entities of which names changed in NameChangedEntityGuids in this change-set, not including created and destroyed entities. |
NativeArray<EntityGuid> | entities | A packed array of all entities in this change-set. |
NativeArray<ComponentTypeHash> | typeHashes | A packed array of all types in this change-set. |
NativeArray<FixedString64Bytes> | names | Changed names including created and destroyed entities in this change-set. |
NativeArray<EntityGuid> | nameChangedEntityGuids | Entities of which names changed in this change-set, not including created and destroyed entities. |
NativeArray<PackedComponent> | addComponents | A set of all component additions in this change-set. |
NativeArray<FilteredArchetype> | addArchetypes | A set of all archetype additions in this change-set. |
NativeArray<PackedComponent> | removeComponents | A set of all component removals in this change-set. |
NativeArray<PackedComponentDataChange> | setComponents | A set of all component data modifications in this change-set. |
NativeArray<byte> | componentData | Data payload for all component changes specified in SetComponents. |
NativeArray<EntityReferenceChange> | entityReferenceChanges | A packed set of all entity references to patch. |
NativeArray<BlobAssetReferenceChange> | blobAssetReferenceChanges | A packed set of all blob asset references to patch. |
PackedManagedComponentDataChange[] | setManagedComponents | A set of all managed component data changes. |
PackedSharedComponentDataChange[] | setSharedComponents | A set of all shared component data changes. |
UnsafeAppendBuffer | unmanagedSharedComponentData | All unmanaged shared data are stored here. |
NativeArray<LinkedEntityGroupChange> | linkedEntityGroupAdditions | A set of all linked entity group additions. |
NativeArray<LinkedEntityGroupChange> | linkedEntityGroupRemovals | A set of all linked entity group removals. |
NativeArray<BlobAssetChange> | createdBlobAssets | A set of all blob asset creations in this change set. |
NativeArray<ulong> | destroyedBlobAssets | A set of all blob assets destroyed in this change set. Identified by the content hash. |
NativeArray<byte> | blobAssetData | The payload for all blob assets in this change set. |