Gets the depth of the picked location in the 3D scene.
Read-only property
| [Visual Basic .NET] |
|---|
Public Property Depth() As Single |
| [C#] |
|---|
|
| [Managed C++] |
|---|
public: __property float get_Depth(); |
| [Unmanaged C++] |
|---|
|
| [Java] |
|---|
public float getDepth(); |
Depth is adjusted for rendering with multiple view frustums so it may be outside the range [0, 1] but it will never be negative. Smaller depth values indicate objects closer to the camera.





