Class XRPassthrough
This class represents the Passthrough functionality in XRPlatform.
Implements
Inherited Members
Namespace: Evergine.Framework.XR.Passthrough
Assembly: Evergine.Framework.dll
Syntax
public abstract class XRPassthrough : DisposableObject, IDisposable
  Properties
IsColorSupported
Gets a value indicating whether the passthrough support color.
Declaration
public abstract bool IsColorSupported { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
IsSurfaceMeshSupported
Gets a value indicating whether the device supports pasthrough projected meshes.
Declaration
public abstract bool IsSurfaceMeshSupported { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Methods
CreatePassthroughLayer()
Create a new passthrough layer.
Declaration
public abstract XRPassthroughLayer CreatePassthroughLayer()
  Returns
| Type | Description | 
|---|---|
| XRPassthroughLayer | The passthrough layer instance.  | 
      
CreateSurfaceMesh(Mesh, Matrix4x4)
Create a Mesh to the Insight Passthrough projection surface.
Declaration
public abstract XRPassthroughSurfaceMesh CreateSurfaceMesh(Mesh surfaceMesh, Matrix4x4 worldToTrackingSpace)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Mesh | surfaceMesh | The mesh.  | 
      
| Matrix4x4 | worldToTrackingSpace | Transform of the mesh respect the tracking space.  | 
      
Returns
| Type | Description | 
|---|---|
| XRPassthroughSurfaceMesh | True if the mesh has been suscessfully added.  | 
      
PausePassthrough()
Pause the passthrough of all layers.
Declaration
public abstract void PausePassthrough()
  StartPassthrough()
Resume the passthrough of all layers.
Declaration
public abstract void StartPassthrough()