Providers
Providers supply and control various resources within Lens Studio.
AnimatedTextureFileProvider
Controls an animated texture resource. Can be accessed from Texture.control on an animated texture. See also: 2D Animation Guide.
Provider.AnimatedTextureFileProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
AudioEffectProvider
Provider for AudioEffectAsset.
Provider.AudioEffectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
AudioOutputProvider
Provider of the Audio Output Audio Track asset.
Provider.AudioOutputProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
AudioTrackProvider
Base class for Audio Track providers.
Provider.AudioTrackProviderAudioOutputProvider, FileAudioTrackProvider, FileLicensedSoundProvider, MicrophoneAudioProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
BodyDepthTextureProvider
Provides depth values of the tracked body encoded as D24_UNORM_S8_UINT in screen resolution. Depth is normalized between 0-1, and the stencil component is ignored. The values may be remapped from normalized units (0 to 1) to negative centimeters from the camera (-near in cm to -far in cm) using the Depth Map mode of the Texture 2D Sample node in Material Editor.
Provider.BodyDepthTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
BodyNormalsTextureProvider
Provides surface normal values of the tracked body encoded as RGBA (x, y, z, confidence) in R8G8B8A8_UNORM format in screen resolution. The XYZ values may need to be remapped from [0 -> 1] to [-1 -> 1] using the "Normal Map" mode of the Texture 2D Sample node in Material Editor.
Provider.BodyNormalsTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
BodyRenderObjectProvider
Provider for full Body Mesh render object.
Provider.BodyRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
CameraTextureProvider
Provider.CameraTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ColocatedLandmarks2DRenderObjectProvider
Not usable from JS. Accessed via the Colocated Landmarks 2D Mesh resource. Contains the 2D keypoints when creating a Colocated map. Expanded by the material provided with template.
Provider.ColocatedLandmarks2DRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ColocatedLandmarks3DRenderObjectProvider
Not usable from JS. Accessed via the Colocated Landmarks 3D Mesh resource. Contains the 3D landmarks when creating a Colocated map. Expanded by the material provided with template.
Provider.ColocatedLandmarks3DRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ColocatedLandmarksRenderObjectProviderBase
Provider.ColocatedLandmarksRenderObjectProviderBaseThis is the API for Lens Studio 4. For the latest API documentation, click here.
CropTextureProvider
Base class for Texture Providers that crop an input texture.
Provider.CropTextureProviderFaceCropTextureProvider, ObjectTrackingMaskedTextureProvider, RectCropTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
DepthStencilRenderTargetProvider
Access to a Depth Stencil Render Target that can output depth and stencil values from a Camera in Depth24/Stencil8 format.
Provider.DepthStencilRenderTargetProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
DepthTextureProvider
Provides depth information of the video feed that the Lens is being applied to when available, such as in Lenses for Spectacles 3.
Can be accessed from mainPass.baseTex.control of a Spectacles Depth material.
See the Lenses for Spectacles guide for more information.
Provider.DepthTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
FaceCropTextureProvider
Texture Provider giving a cropped region of the input texture, calculated based on face position.
Can be accessed using Texture.control on a FaceCropTexture asset.
For more information, see the Crop Textures guide.
Provider.FaceCropTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
FaceImagePickerTextureProvider
Controls the face image picker texture resource. Can be accessed through Texture.control on a Face Image Picker texture. For more information, see the Face Image Picker Texture guide.
Provider.FaceImagePickerTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
FaceRenderObjectProvider
Mesh provider for a Face Mesh. Accessible through the control property on a Face Mesh RenderMesh.
Provider.FaceRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
FaceTextureProvider
TextureProvider for face textures. See the Face Texture Guide for more information. Can be accessed using Texture.control on a face texture asset.
Provider.FaceTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
FileAudioTrackProvider
Provider for file based Audio Tracks.
Provider.FileAudioTrackProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
FileLicensedSoundProvider
A file track provider of the Licensed Sounds from Asset LIbrary.
Provider.FileLicensedSoundProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
FileTextureProvider
A TextureProvider for textures originating from files.
Provider.FileTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ImagePickerTextureProvider
Controls an image picker texture and UI. Can be accessed through Texture.control on an Image Picker texture. For more information, see the Image Picker Texture guide.
Provider.ImagePickerTextureProviderFaceImagePickerTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
LocationRenderObjectProvider
Provides access to a location's Mesh--such as when working with City Scale AR. Usually used in conjunction with LocationTextureProvider.
Provider.LocationRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
LocationTextureProvider
Provides access to a location's texture--such as when working with City Scale AR.
Provider.LocationTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
MarkerProvider
Base class for marker providers. For more information, see the Marker Tracking guide.
Provider.MarkerProviderSnapcodeMarkerProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
MediaPickerTextureProvider
Base class for Texture Providers based on selectable media.
Provider.MediaPickerTextureProviderImagePickerTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
MeshRenderObjectProvider
Provider.MeshRenderObjectProviderProceduralMeshRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
MicrophoneAudioProvider
The Audio Track Provider of the audio from microphone.
Provider.MicrophoneAudioProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ObjectTrackingMaskedTextureProvider
Provider.ObjectTrackingMaskedTextureProviderObjectTrackingNormalsTextureProvider, ObjectTrackingTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ObjectTrackingNormalsTextureProvider
Provider.ObjectTrackingNormalsTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ObjectTrackingTextureProvider
Controls a segmentation texture and its placement using information provided by Object tracking.
Provider.ObjectTrackingTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ProceduralMeshRenderObjectProvider
RenderObjectProvider for mesh objects generated procedurally.
Provider.ProceduralMeshRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ProceduralTextureProvider
Provides a texture that can be written to or read from. Can be accessed using Texture.control on a Procedural Texture.
Provider.ProceduralTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
Provider
Base class for all resource providers.
ProviderAudioEffectProvider, AudioTrackProvider, MarkerProvider, RenderObjectProvider, TextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
RectCropTextureProvider
Texture Provider providing a cropped region of the input texture. The region is specified by the cropRect in local space and rotation. Can be accessed using Texture.control on a RectCropTexture asset, such as a Screen Crop Texture. For more information, see the Crop Textures guide.
Provider.RectCropTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
RenderObjectProvider
Provider for RenderMesh data.
RenderObjectProviderBodyRenderObjectProvider, ColocatedLandmarksRenderObjectProviderBase, FaceRenderObjectProvider, LocationRenderObjectProvider, MeshRenderObjectProvider, WorldRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
RenderTargetProvider
Controls a camera texture resource. Can be accessed through Texture.control on a Camera texture. For more information, see the Camera and Layers guide.
Provider.RenderTargetProviderRenderTargetProvider.TextureTypeThis is the API for Lens Studio 4. For the latest API documentation, click here.
ScreenTextureProvider
Texture providing the current Render Target being rendered.
Provider.ScreenTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
SegmentationTextureProvider
Controls a segmentation texture resource. Can be accessed through Texture.control on a Segmentation texture. For more information, see the Segmentation guide.
Provider.SegmentationTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
SnapcodeMarkerProvider
Provides a marker for tracking Snapcodes. For more information, see the Marker Tracking guide.
Provider.SnapcodeMarkerProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
TextProvider
Controls a text rendering texture. Can be accessed through the main rendering pass on a Label component. The properties here mirror those on Label.
Provider.TextProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
TextureProvider
The base class for specialized Texture providers. Can be accessed through Texture.control.
TextureProviderAnimatedTextureFileProvider, BodyDepthTextureProvider, BodyNormalsTextureProvider, CameraTextureProvider, CropTextureProvider, DepthStencilRenderTargetProvider, DepthTextureProvider, FaceTextureProvider, FileTextureProvider, LocationTextureProvider, MediaPickerTextureProvider, ProceduralTextureProvider, RenderTargetProvider, ScreenTextureProvider, SegmentationTextureProvider, TextProvider, VideoTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
VideoTextureProvider
Controls a video texture resource. Can be accessed through Texture.control.
Provider.VideoTextureProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
WorldRenderObjectProvider
Provider for RenderMesh data representing the estimated shape of real world objects generated from depth information. Only available when world mesh tracking is supported and enabled.
Provider.WorldRenderObjectProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.