Method TryGetEnvironmentDepth
TryGetEnvironmentDepth(out XRTextureDescriptor)
Gets the environment depth texture descriptor.
Declaration
public bool TryGetEnvironmentDepth(out XRTextureDescriptor environmentDepthDescriptor)
Parameters
Type | Name | Description |
---|---|---|
XRTextureDescriptor | environmentDepthDescriptor | The environment depth texture descriptor to be populated, if available from the provider. |
Returns
Type | Description |
---|---|
bool |
|
Remarks
Whether the depth image is smoothed or raw depends on the value of environmentDepthTemporalSmoothingEnabled.
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown if the implementation does not support environment depth texture. |