Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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)

Parameters

minDepth

The value used to set _minDepth.

maxDepth

The value used to set _maxDepth.