文档

Unity Engine

Unity Engine

NoFilter()

Sets the contact filter to not filter any ContactPoint2D.
阅读时间1 分钟最后更新于 1 个月前

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.