Skip to main content
API Reference NianticSpatial.Nsdk.MetaQuest XROcclusionSubsystemExtensions

TryGetEnvironmentDepthExt


Declaration

public static bool TryGetEnvironmentDepthExt(this XROcclusionSubsystem occlusionSubsystem, ref Texture2D destination, bool pushToGpu = true)

Parameters

NameTypeSummary
occlusionSubsystemXROcclusionSubsystem
The occlusion subsystem to get the depth from.
destinationTexture2D
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.
pushToGpubool
If true, the data will be copied to gpu memory via Texture2D.Apply().