API reference
API reference
Select your platform
No SDKs available
No versions available

UOculusXRStereoLayerShapeUserDefined Class

Represents a passthrough layer which relies on the geometry and the depth provided by the client to render itself.
The Passthrough API enables you to show the user's real environment in your mixed reality experiences. It offers several options to customize the appearance of passthrough, such as adjusting opacity, highlight salient edges in the image, or control the color reproduction. For passthrough to be visible, it must be enabled in the Meta XR Plugin via the UOculusXRHMDRuntimeSettings::bInsightPassthroughEnabled property.

Member Functions

Adds a geometry onto which the passthrough images will be projected.
Parameters
MeshName
Name for the geometry to be added. It is used if later you decide to remove the geometry from the layer.
PassthroughMesh
Reference to the mesh to be added.
Transform
Transform of the mesh to be added.
bUpdateTransform
When the value is true, current layer will update the transform of the surface mesh every frame. Otherwise only the initial transform is recorded.
Removes the geometry that has previously been added using AddGeometry() from the projection surface
Parameters
MeshName
Name for the geometry to be removed.
virtual void ApplyShape
( IStereoLayers::FLayerDesc & LayerDesc )
Returns a list of geometries previously added to this surface projected passthrough layer.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon