Method MakeUnique
MakeUnique(ref PhysicsCollider, in Entity, EntityManager)
Makes this collider unique if this is not already the case.
Declaration
public static void MakeUnique(this ref PhysicsCollider collider, in Entity entity, EntityManager entityManager)
Parameters
Type | Name | Description |
---|---|---|
PhysicsCollider | collider | The PhysicsCollider component representing the collider. |
Entity | entity | The entity which contains the PhysicsCollider component. |
EntityManager | entityManager | An entity manager, required for this operation. |
MakeUnique(ref PhysicsCollider, in Entity, EntityCommandBuffer)
Makes this collider unique if this is not already the case.
Declaration
public static void MakeUnique(this ref PhysicsCollider collider, in Entity entity, EntityCommandBuffer ecb)
Parameters
Type | Name | Description |
---|---|---|
PhysicsCollider | collider | The PhysicsCollider component representing the collider. |
Entity | entity | The entity which contains the PhysicsCollider component. |
EntityCommandBuffer | ecb | An entity command buffer, required for this operation. |
MakeUnique(ref PhysicsCollider, in Entity, ParallelWriter, int)
Makes this collider unique if this is not already the case. This function can be used in a job.
Declaration
public static void MakeUnique(this ref PhysicsCollider collider, in Entity entity, EntityCommandBuffer.ParallelWriter ecbParallelWriter, int sortKey)
Parameters
Type | Name | Description |
---|---|---|
PhysicsCollider | collider | The PhysicsCollider component representing the collider. |
Entity | entity | The entity which contains the PhysicsCollider component. |
EntityCommandBuffer.ParallelWriter | ecbParallelWriter | An entity command buffer's parallel writer, required for this operation. |
int | sortKey | A unique index required for adding a component through the provided |