Skip to main content
Version: 3.8

class Provider

(Niantic.Lightship.AR.XRSubsystems.XRScanningSubsystem.Provider)

Overview

An abstract class to be implemented by providers of this subsystem.

	class Provider: SubsystemProvider< XRScanningSubsystem > {
public:
// properties

XRScanningConfiguration CurrentConfiguration;

// methods

virtual string GetScanId();
virtual XRScanningState GetState();

virtual bool TryGetRaycastBuffer(
out XRTextureDescriptor raycastBufferDescriptor,
out XRTextureDescriptor raycastNormalBufferDescriptor,
out XRTextureDescriptor raycastPositionAndConfidenceDescriptor
);

virtual void SaveCurrentScan();
virtual void DiscardCurrentScan();
virtual void ComputeVoxels();
virtual bool TryGetVoxelBuffer(out XRScanningVoxelData voxelData);
virtual void DisposeVoxelBuffer(XRScanningVoxelData voxelData);
};

Detailed Documentation

An abstract class to be implemented by providers of this subsystem.

Methods

GetScanId

virtual string GetScanId()

Get the current scan's ID.