TryGetEnvironmentDepthExt
Declaration
public static bool TryGetEnvironmentDepthExt(this XROcclusionSubsystem occlusionSubsystem, ref Texture2D destination, bool pushToGpu = true)
Parameters
| Name | Type | Summary |
|---|---|---|
| occlusionSubsystem | XROcclusionSubsystem | The occlusion subsystem to get the depth from. |
| destination | Texture2D | The destination texture to write the depth data to. This texture may get destroyed and recreated if the size or format does not match the depth data. |
| pushToGpu | bool | If true, the data will be copied to gpu memory via Texture2D.Apply(). |