SetDepth(float, float)
Sets the _minDepth and _maxDepth filter properties and turns on depth filtering by setting _useDepth to true.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public void SetDepth(float minDepth, float maxDepth)