Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NoFilter()

Sets the contact filter to not filter any ContactPoint2D.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public ContactFilter2D NoFilter()

Returns

Type

Description

ContactFilter2DA copy of the contact filter set to not filter any ContactPoint2D.

Remarks

When you are using a function that requires a ContactFilter2D, but you don't want to perform any filtering, then use this function to return a ContactFilter2D that turns off any filtering.