Show / Hide Table of Contents

Struct ContactFilter2D

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
[Serializable]
public struct ContactFilter2D

Fields

| Improve this Doc View Source

layerMask

Declaration
public LayerMask layerMask
Field Value
Type Description
LayerMask
| Improve this Doc View Source

maxDepth

Declaration
public float maxDepth
Field Value
Type Description
Single
| Improve this Doc View Source

maxNormalAngle

Declaration
public float maxNormalAngle
Field Value
Type Description
Single
| Improve this Doc View Source

minDepth

Declaration
public float minDepth
Field Value
Type Description
Single
| Improve this Doc View Source

minNormalAngle

Declaration
public float minNormalAngle
Field Value
Type Description
Single
| Improve this Doc View Source

NormalAngleUpperLimit

Declaration
public const float NormalAngleUpperLimit = 359.9999F
Field Value
Type Description
Single
| Improve this Doc View Source

useDepth

Declaration
public bool useDepth
Field Value
Type Description
Boolean
| Improve this Doc View Source

useLayerMask

Declaration
public bool useLayerMask
Field Value
Type Description
Boolean
| Improve this Doc View Source

useNormalAngle

Declaration
public bool useNormalAngle
Field Value
Type Description
Boolean
| Improve this Doc View Source

useOutsideDepth

Declaration
public bool useOutsideDepth
Field Value
Type Description
Boolean
| Improve this Doc View Source

useOutsideNormalAngle

Declaration
public bool useOutsideNormalAngle
Field Value
Type Description
Boolean
| Improve this Doc View Source

useTriggers

Declaration
public bool useTriggers
Field Value
Type Description
Boolean

Properties

| Improve this Doc View Source

isFiltering

Declaration
public bool isFiltering { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

ClearDepth()

Declaration
public void ClearDepth()
| Improve this Doc View Source

ClearLayerMask()

Declaration
public void ClearLayerMask()
| Improve this Doc View Source

ClearNormalAngle()

Declaration
public void ClearNormalAngle()
| Improve this Doc View Source

IsFilteringDepth(GameObject)

Declaration
public bool IsFilteringDepth(GameObject obj)
Parameters
Type Name Description
GameObject obj
Returns
Type Description
Boolean
| Improve this Doc View Source

IsFilteringLayerMask(GameObject)

Declaration
public bool IsFilteringLayerMask(GameObject obj)
Parameters
Type Name Description
GameObject obj
Returns
Type Description
Boolean
| Improve this Doc View Source

IsFilteringNormalAngle(Single)

Declaration
public bool IsFilteringNormalAngle(float angle)
Parameters
Type Name Description
Single angle
Returns
Type Description
Boolean
| Improve this Doc View Source

IsFilteringNormalAngle(Vector2)

Declaration
public bool IsFilteringNormalAngle(Vector2 normal)
Parameters
Type Name Description
Vector2 normal
Returns
Type Description
Boolean
| Improve this Doc View Source

IsFilteringTrigger(Collider2D)

Declaration
public bool IsFilteringTrigger(Collider2D collider)
Parameters
Type Name Description
Collider2D collider
Returns
Type Description
Boolean
| Improve this Doc View Source

NoFilter()

Declaration
public ContactFilter2D NoFilter()
Returns
Type Description
ContactFilter2D
| Improve this Doc View Source

SetDepth(Single, Single)

Declaration
public void SetDepth(float minDepth, float maxDepth)
Parameters
Type Name Description
Single minDepth
Single maxDepth
| Improve this Doc View Source

SetLayerMask(LayerMask)

Declaration
public void SetLayerMask(LayerMask layerMask)
Parameters
Type Name Description
LayerMask layerMask
| Improve this Doc View Source

SetNormalAngle(Single, Single)

Declaration
public void SetNormalAngle(float minNormalAngle, float maxNormalAngle)
Parameters
Type Name Description
Single minNormalAngle
Single maxNormalAngle

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX