Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DestroyBatch(ReadOnlySpan<PhysicsHandle>)

Destroy the specified span of PhysicsHandle. NOTE: If any of the handles come from another physics object, it will not destroy that object and a warning will be issued.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static void DestroyBatch(ReadOnlySpan<PhysicsHandle> physicsHandles)

Parameters

The physics handles to destroy.