ドキュメント

Unity Engine

Unity Engine

DestroyBatch

Destroy a batch of joints. Owned joints will produce a warning and will not be destroyed (see PhysicsJoint.SetOwner ). Any invalid joints will be ignored.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

DestroyBatch(ReadOnlySpan<PhysicsJoint>)

Destroy a batch of joints. Owned joints will produce a warning and will not be destroyed (see PhysicsJoint.SetOwner). Any invalid joints will be ignored.
public static void DestroyBatch(ReadOnlySpan<PhysicsJoint> joints)

Parameters

The joints to destroy.

DestroyBatch(ReadOnlySpan<PhysicsJoint>, int)

Destroy a batch of joints. Any invalid joints are ignored. A joint owned by a different owner key is skipped and left valid; a joint with no owner, or one matching the given owner key, is destroyed. One summary warning reports how many joints were skipped this way, rather than one warning per joint.
public static void DestroyBatch(ReadOnlySpan<PhysicsJoint> joints, int ownerKey)

Parameters

The joints to destroy.

ownerKey

Optional owner key returned when using PhysicsJoint.SetOwner.

Remarks