Documentation

Unity Engine

Unity Engine

ClearDepth()

Turns off depth filtering by setting ContactFilter2D.useDepth to false. The associated values of ContactFilter2D.minDepth and ContactFilter2D.maxDepth are not changed.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public void ClearDepth()