Script Objects
Script Objects represent script data.
Anchor
An object containing the position of an object relative to a LocationAsset.
AnchorThis is the API for Lens Studio 4. For the latest API documentation, click here.
AnimationMixerLayer
Controls animation playback for a single animation layer. See also: AnimationMixer.
AnimationMixerLayerThis is the API for Lens Studio 4. For the latest API documentation, click here.
BackgroundSettings
Settings for rendering the background on a Text component.
Accessible through the Text component's backgroundSettings property.
BackgroundSettingsThis is the API for Lens Studio 4. For the latest API documentation, click here.
BaseMultiplayerSessionOptions
Base class for MultiplayerSession options. This class is not used directly - use ConnectedLensSessionOptions instead.
BaseMultiplayerSessionOptionsDirectMultiplayerSessionOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
BasePlaceholder
Base class for Input and Output Placeholders used by MLComponent.
BasePlaceholderInputPlaceholder, OutputPlaceholderThis is the API for Lens Studio 4. For the latest API documentation, click here.
BasicTransform
Provides basic information about a transformation. See also: DeviceTracking
BasicTransformThis is the API for Lens Studio 4. For the latest API documentation, click here.
Bitmoji3DResource
Provides information about the current user's 3D Bitmoji avatar to be downloaded via the RemoteMediaModule.
Bitmoji3DResourceThis is the API for Lens Studio 4. For the latest API documentation, click here.
BoxShape
A box collision shape.
BoxShapeThis is the API for Lens Studio 4. For the latest API documentation, click here.
Camera.BaseRenderTarget
The base class from which ColorRenderTarget and DepthStencilRenderTarget are derived from
BaseRenderTargetCameraCamera.ColorRenderTarget, Camera.DepthStencilRenderTargetThis is the API for Lens Studio 4. For the latest API documentation, click here.
Camera.ColorRenderTarget
Color based RenderTarget.
ColorRenderTargetCameraThis is the API for Lens Studio 4. For the latest API documentation, click here.
Camera.DepthStencilRenderTarget
This class inherits from the BaseRenderTarget class. BaseRenderTarget class is not available for creation and is used like the base class for DepthStencilRenderTarget class to provide access to targetTexture, inputTexture and maskTexture properties.
DepthStencilRenderTargetCameraThis is the API for Lens Studio 4. For the latest API documentation, click here.
CapsuleShape
A capsule collision shape. Also known as a capped cylinder.
CapsuleShapeThis is the API for Lens Studio 4. For the latest API documentation, click here.
CloudStorageListOptions
Options associated with the listValues method call.
CloudStorageListOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
CloudStorageOptions
Used to configure Cloud Storage Module with various options. Note: if session scoped storage is required, this option must be provided.
CloudStorageOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
CloudStorageReadOptions
Options associated with the getValue/deleteValue methods for Cloud Storage.
CloudStorageReadOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
CloudStorageWriteOptions
Options associated with the setValue method for Cloud Storage.
CloudStorageWriteOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
CloudStore
An instance of Cloud Storage that can store data in a multiplayer experience.
CloudStoreThis is the API for Lens Studio 4. For the latest API documentation, click here.
Collision
A state generated for ColliderComponent collision events.
Physics.CollisionThis is the API for Lens Studio 4. For the latest API documentation, click here.
CollisionEnterEventArgs
Args used for ColliderComponent.onCollisionEnter, which is triggered when a collision begins.
Physics.CollisionEnterEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
CollisionExitEventArgs
Args used for ColliderComponent.onCollisionExit, which is triggered when a collision ends.
Physics.CollisionExitEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
CollisionStayEventArgs
Args used for ColliderComponent.onCollisionStay, which is triggered every frame while a collision continues.
Physics.CollisionStayEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConeShape
A cone collision shape.
ConeShapeThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensModule.ConnectionInfo
Information that is bootstrapped to the user who just connected to the session.
ConnectionInfoConnectedLensModuleThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensModule.HostUpdateInfo
Information about the host update.
HostUpdateInfoConnectedLensModuleThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensModule.RealtimeStoreCreationInfo
Provides extra context about a RealtimeStore's creation.
RealtimeStoreCreationInfoConnectedLensModuleThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensModule.RealtimeStoreDeleteInfo
Gives information about the Realtime Store delete operation.
RealtimeStoreDeleteInfoConnectedLensModuleThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensModule.RealtimeStoreKeyRemovalInfo
Provides information about a key being removed from a RealtimeStore.
RealtimeStoreKeyRemovalInfoConnectedLensModuleThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensModule.RealtimeStoreOwnershipUpdateInfo
Provides information about a RealtimeStore's ownership being updated.
RealtimeStoreOwnershipUpdateInfoConnectedLensModuleThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensModule.RealtimeStoreUpdateInfo
Gives information about the Realtime Store update operation.
RealtimeStoreUpdateInfoConnectedLensModuleThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensModule.UserInfo
Provides information about a user in a Connected Lens session.
UserInfoConnectedLensModuleThis is the API for Lens Studio 4. For the latest API documentation, click here.
ConnectedLensSessionOptions
Settings for configuring a Connected Lens session.
ConnectedLensSessionOptionsConnectedLensSessionOptions.SessionCreationTypeThis is the API for Lens Studio 4. For the latest API documentation, click here.
Constraint
Constraints body motion in configurable ways, for simulating physical objects such as joints and hinges.
Physics.ConstraintThis is the API for Lens Studio 4. For the latest API documentation, click here.
Contact
Contact point between two colliding objects. See also: ColliderComponent, CollisionEnterEventArgs, CollisionExitEventArgs, CollisionStayEventArgs.
Physics.ContactThis is the API for Lens Studio 4. For the latest API documentation, click here.
CylinderShape
A cylinder collision shape.
CylinderShapeThis is the API for Lens Studio 4. For the latest API documentation, click here.
Delay
Creates a buffer for the audio data.
DelayThis is the API for Lens Studio 4. For the latest API documentation, click here.
DelayBuilder
Builder class for the Delay.
DelayBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
Delta
Local estimate of the derivative of the input data along the selected axis. Outputs the derivative of the input features along the window.
DeltaThis is the API for Lens Studio 4. For the latest API documentation, click here.
DeltaBuilder
Builder class for Delta.
DeltaBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
DeviceCamera
Provides information about the device's camera.
DeviceCameraThis is the API for Lens Studio 4. For the latest API documentation, click here.
DeviceInfoSystem
Provides information about the device running the Lens. Accessible through global.deviceInfoSystem.
DeviceInfoSystemThis is the API for Lens Studio 4. For the latest API documentation, click here.
Dialog.Answer
Provides answer information in response to DialogModule.askQuestions().
AnswerThis is the API for Lens Studio 4. For the latest API documentation, click here.
DirectMultiplayerSessionOptions
DirectMultiplayerSessionOptionsConnectedLensSessionOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
DirectivityEffect
An Audio Component effect that simulates sound attenuation based on the orientation of the transform relative to the AudioListenerComponent.
DirectivityEffectThis is the API for Lens Studio 4. For the latest API documentation, click here.
DistanceEffect
An audio effect that simulates sound attenuation based on the distance between the Audio and the AudioListenerComponent.
DistanceEffectThis is the API for Lens Studio 4. For the latest API documentation, click here.
DropshadowSettings
Used in Text's dropShadowSettings property.
Configures how dropshadow will appear on a Text component.
DropshadowSettingsThis is the API for Lens Studio 4. For the latest API documentation, click here.
DynamicResource
A resource that is resolved at runtime.
DynamicResourceBitmoji3DResourceThis is the API for Lens Studio 4. For the latest API documentation, click here.
EventRegistration
EventRegistrationThis is the API for Lens Studio 4. For the latest API documentation, click here.
Filter
Intersection filter settings. Unifies settings for world probes and collider overlap tests. See also: ColliderComponent, Physics.
Physics.FilterThis is the API for Lens Studio 4. For the latest API documentation, click here.
FixedConstraint
Fully constrain rotation and translation. See also: ConstraintComponent.
Physics.FixedConstraintThis is the API for Lens Studio 4. For the latest API documentation, click here.
FocusEndEventArgs
Arguments used with the InteractionComponent.onFocusEnd event.
FocusEndEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
FocusStartEventArgs
Arguments used with the InteractionComponent.onFocusStart event.
FocusStartEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
GeneralDataStore
Class for storing and retrieving data based on keys. Used by PersistentStorageSystem. For more information, see the Persistent Storage guide.
GeneralDataStoreThis is the API for Lens Studio 4. For the latest API documentation, click here.
GltfSettings
Settings for importing a glTF Asset.
Use this with GltfAsset component's tryInstantiateWithSetting method.
GltfSettingsThis is the API for Lens Studio 4. For the latest API documentation, click here.
HandSpecificData
Provides additional data for the tracked hand. You can figure out whether the tracked hand is the left hand by accessing the isLeft property [true/false], as well as the probability of this data through the isLeftProbability property [0-1].
HandSpecificDataThis is the API for Lens Studio 4. For the latest API documentation, click here.
HingeConstraint
Constraints translation and a single axis of rotation. See also: ConstraintComponent.
Physics.HingeConstraintThis is the API for Lens Studio 4. For the latest API documentation, click here.
InputBuilder
Builds InputPlaceHolders for MLComponent.
InputBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
InputPlaceholder
Controls input data for a neural network used by an MLComponent. For more information, see the MLComponent Scripting guide.
InputPlaceholderThis is the API for Lens Studio 4. For the latest API documentation, click here.
LevelsetShape
A levelset collision shape. A levelset is an asset that is generated to approximate a mesh.
LevelsetShapeThis is the API for Lens Studio 4. For the latest API documentation, click here.
LocalizationSystem
Helps convert data types to localized string representations. Accessible through global.localizationSystem.
Note that formatted or localized strings may appear differently to users depending on their region. The example results given here are representative of a user in the United States, but may appear differently for users in other regions.
LocalizationSystemThis is the API for Lens Studio 4. For the latest API documentation, click here.
LocationCloudStorageOptions
Used to configure LocationCloudStorage module with various options.
LocationCloudStorageOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
LocationCloudStore
Instance of location cloud store which has similar interfaces as cloud store.
LocationCloudStoreThis is the API for Lens Studio 4. For the latest API documentation, click here.
MFCC
Mel-frequency cepstral coefficients.
MFCCThis is the API for Lens Studio 4. For the latest API documentation, click here.
MFCCBuilder
Builder class for the MFCC (Mel Frequency Cepstral Co-efficients).
MFCCBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ManipulateEndEventArgs
Arguments used with the ManipulateComponent.onManipulateEnd event.
ManipulateEndEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
ManipulateStartEventArgs
Arguments used with the ManipulateComponent.onManipulateStart event.
ManipulateStartEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
MelSpectrogram
Computes a mel scale spectrogram - a spectrogram where the frequencies are converted to the mel scale.
MelSpectrogramThis is the API for Lens Studio 4. For the latest API documentation, click here.
MelSpectrogramBuilder
A builder class for MelSpectrogram.
MelSpectrogramBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
MeshShape
Allows meshes to be used as collision shapes, for ColliderComponent and BodyComponent.
MeshShapeThis is the API for Lens Studio 4. For the latest API documentation, click here.
MultiplayerSession
An instance of a Connected Lens session among a group of participants who were successfully invited into the experience.
MultiplayerSessionThis is the API for Lens Studio 4. For the latest API documentation, click here.
NoiseReduction
NoiseReductionThis is the API for Lens Studio 4. For the latest API documentation, click here.
NoiseReductionBuilder
NoiseReductionBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
ObjectSpecificData
Provides additional data for the tracked object. For example, with hand tracking, you can figure out whether the tracked hand is the left hand by accessing the isLeft property [true/false], as well as the probability of this data through the isLeftProbability property [0-1].
ObjectSpecificDataHandSpecificDataThis is the API for Lens Studio 4. For the latest API documentation, click here.
OutlineSettings
Used in Text's outlineSettings property.
Configures how text outlining will appear on a Text component.
OutlineSettingsThis is the API for Lens Studio 4. For the latest API documentation, click here.
OutputBuilder
Builds OutputPlaceholders for MLComponent.
OutputBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
OutputPlaceholder
Provides output data from the neural network used by an MLComponent. For more information, see the MLComponent Scripting guide.
OutputPlaceholderThis is the API for Lens Studio 4. For the latest API documentation, click here.
Overlap
Exposes state generated for ColliderComponent overlap events. See also: ColliderComponent, OverlapEnterEventArgs, OverlapExitEventArgs, OverlapStayEventArgs.
Physics.OverlapThis is the API for Lens Studio 4. For the latest API documentation, click here.
OverlapEnterEventArgs
Args used for ColliderComponent.onOverlapEnter, which is triggered when the collider begins overlapping another object. Typically used for volume triggers.
Physics.OverlapEnterEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
OverlapExitEventArgs
Args used for ColliderComponent.onOverlapEnd, which is triggered when the collider stops overlapping another object. Typically used for volume triggers.
Physics.OverlapExitEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
OverlapStayEventArgs
Args used for ColliderComponent.onOverlapStay, which is triggered every frame while the collider continues overlapping another object. Typically used for volume triggers.
Physics.OverlapStayEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
Pass
Controls properties for the VFXAsset. Accessible through VFXAsset.properties.
Any scriptable properties on a VFX Graph will automatically become properties of this Properties class.
For example, if the VFX Graph defines a variable named baseColor, a script would be able to access that property as vfxAsset.properties.baseColor.
Asset.PassThis is the API for Lens Studio 4. For the latest API documentation, click here.
PassWrapper
Similar to Pass, except used by VFX Assets.
PassWrapperThis is the API for Lens Studio 4. For the latest API documentation, click here.
PassWrappers
Allows for retrieval of a collection of Pass objects used by VFXAsset
PassWrappersThis is the API for Lens Studio 4. For the latest API documentation, click here.
PersistentStorageSystem
Allows data to be stored and retrieved between Lens sessions.
In other words, data can be saved on device and loaded back in the next time the Lens is opened.
Can be accessed with global.persistentStorageSystem.
See the Persistent Storage guide for more information.
PersistentStorageSystemThis is the API for Lens Studio 4. For the latest API documentation, click here.
PitchShifter
PitchShifterThis is the API for Lens Studio 4. For the latest API documentation, click here.
PitchShifterBuilder
PitchShifterBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
PointCloud
Represents 3D locations of stationary features in the environment. The resulting cloud of points provides a sparse description of the 3D environment.
PointCloudThis is the API for Lens Studio 4. For the latest API documentation, click here.
PointConstraint
A type of constraint that only allows rotation. See also: ConstraintComponent.
Physics.PointConstraintThis is the API for Lens Studio 4. For the latest API documentation, click here.
PositionEffect
An Audio Component effect that allows the Lens to simulate sound based on the direction of the Audio Listener relative to the Audio Component.
PositionEffectThis is the API for Lens Studio 4. For the latest API documentation, click here.
Probe
Performs collision tests (such as ray casts) in one or more world. See Physics.createGlobalProbe(), Physics.createRootProbe(), WorldComponent.createProbe().
Physics.ProbeThis is the API for Lens Studio 4. For the latest API documentation, click here.
Properties
PropertiesThis is the API for Lens Studio 4. For the latest API documentation, click here.
RayCastHit
Hit results of a ray-cast provided to script. See Probe.
Physics.RayCastHitThis is the API for Lens Studio 4. For the latest API documentation, click here.
RealtimeStoreCreateOptions
The options for the realtime store.
RealtimeStoreCreateOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
Rect
An axis aligned rectangle.
Used by anchors and offsets in ScreenTransform to represent screen boundaries.
RectThis is the API for Lens Studio 4. For the latest API documentation, click here.
RemoteApiRequest
RemoteApiRequestThis is the API for Lens Studio 4. For the latest API documentation, click here.
RemoteApiResponse
RemoteApiResponseThis is the API for Lens Studio 4. For the latest API documentation, click here.
RotatedRect
RotatedRectThis is the API for Lens Studio 4. For the latest API documentation, click here.
RotationOptions
Used with DeviceTracking.rotationOptions to change settings for Rotation tracking mode.
RotationOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
Sampler
SamplerThis is the API for Lens Studio 4. For the latest API documentation, click here.
SamplerBuilder
Class for building Sampler.
SamplerBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
SamplerWrapper
An accessor for Pass.samplers when using PassWrappers
SamplerWrapperThis is the API for Lens Studio 4. For the latest API documentation, click here.
SamplerWrappers
SamplerWrappersThis is the API for Lens Studio 4. For the latest API documentation, click here.
SceneObject
An object in the scene hierarchy, containing a Transform and possibly Components.
A script can access the SceneObject holding it through the method script.getSceneObject().
SceneObjectThis is the API for Lens Studio 4. For the latest API documentation, click here.
ScriptObject
Base class for objects representing Script data.
ScriptObjectAnchor, AnimationMixerLayer, BackgroundSettings, BaseMultiplayerSessionOptions, BasePlaceholder, BasicTransform, Camera.BaseRenderTarget, CloudStorageListOptions, CloudStorageOptions, CloudStorageReadOptions, CloudStorageWriteOptions, CloudStore, Collision, CollisionEnterEventArgs, CollisionExitEventArgs, CollisionStayEventArgs, ConnectedLensModule.ConnectionInfo, ConnectedLensModule.HostUpdateInfo, ConnectedLensModule.RealtimeStoreCreationInfo, ConnectedLensModule.RealtimeStoreDeleteInfo, ConnectedLensModule.RealtimeStoreKeyRemovalInfo, ConnectedLensModule.RealtimeStoreOwnershipUpdateInfo, ConnectedLensModule.RealtimeStoreUpdateInfo, ConnectedLensModule.UserInfo, Constraint, Contact, Delay, DelayBuilder, Delta, DeltaBuilder, DeviceCamera, DeviceInfoSystem, Dialog.Answer, DirectivityEffect, DistanceEffect, DropshadowSettings, DynamicResource, EventRegistration, Filter, FocusEndEventArgs, FocusStartEventArgs, GeneralDataStore, GltfSettings, IEventParameters, InputBuilder, LocalizationSystem, LocationCloudStorageOptions, LocationCloudStore, ManipulateEndEventArgs, ManipulateStartEventArgs, MelSpectrogram, MelSpectrogramBuilder, MFCC, MFCCBuilder, MultiplayerSession, NoiseReduction, NoiseReductionBuilder, ObjectSpecificData, OutlineSettings, OutputBuilder, Overlap, OverlapEnterEventArgs, OverlapExitEventArgs, OverlapStayEventArgs, Pass, PassWrapper, PassWrappers, PersistentStorageSystem, PitchShifter, PitchShifterBuilder, PointCloud, PositionEffect, Probe, Properties, Provider, RayCastHit, RealtimeStoreCreateOptions, Rect, RemoteApiRequest, RemoteApiResponse, RotatedRect, RotationOptions, Sampler, SamplerBuilder, SamplerWrapper, SamplerWrappers, ScriptScene, SelectEndEventArgs, SelectStartEventArgs, SerializableWithUID, Shape, SpatialAudio, Spectrogram, SpectrogramBuilder, StencilState, StorageOptions, SurfaceOptions, TapEventArgs, TextFill, TextInputSystem, TextToSpeech.Options, TextToSpeech.PhonemeInfo, TextToSpeech.WordInfo, TouchDataProvider, TouchEndEventArgs, TouchMoveEventArgs, TouchStartEventArgs, TrackedMesh, TrackedMeshHistogramResult, TrackedMeshHitTestResult, TrackedPlane, TrackedPoint, Transform, Transformer, TransformerBuilder, TriangleHit, TriggerPrimaryEventArgs, UserContextSystem, VertexSimulationSettings, VoiceML.AdditionalParam, VoiceML.BaseNlpModel, VoiceML.BaseNlpResponse, VoiceML.KeywordModelGroup, VoiceML.ListeningErrorEventArgs, VoiceML.ListeningOptions, VoiceML.ListeningUpdateEventArgs, VoiceML.NlpResponseStatus, VoiceML.PostProcessingAction, VoiceML.PostProcessingActionResponse, VoiceML.PostProcessingActionResponseStatus, VoiceML.SpeechContext, WorldOptions, WorldTrackingCapabilitiesThis is the API for Lens Studio 4. For the latest API documentation, click here.
ScriptScene
Represents the Lens scene. Accessible through global.scene.
ScriptSceneThis is the API for Lens Studio 4. For the latest API documentation, click here.
SelectEndEventArgs
Arguments used with the InteractionComponent.onSelectEnd event.
SelectEndEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
SelectStartEventArgs
Arguments used with the InteractionComponent.onSelectStart event.
SelectStartEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
SerializableWithUID
Low-level data class.
SerializableWithUIDThis is the API for Lens Studio 4. For the latest API documentation, click here.
Shape
Base type for collision shapes.
ShapeBoxShape, CapsuleShape, ConeShape, CylinderShape, LevelsetShape, MeshShape, SphereShapeThis is the API for Lens Studio 4. For the latest API documentation, click here.
SpatialAudio
SpatialAudioThis is the API for Lens Studio 4. For the latest API documentation, click here.
Spectrogram
Representation the signal strength over time at various frequencies present in a particular waveform. Created by applying Fast Fourier Transform (FFT) on the overlapping segments of the audio data.
SpectrogramThis is the API for Lens Studio 4. For the latest API documentation, click here.
SpectrogramBuilder
The builder class for Spectrogram.
SpectrogramBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
SphereShape
A sphere collision shape.
SphereShapeThis is the API for Lens Studio 4. For the latest API documentation, click here.
StencilState
The stencil test state for Pass.
StencilStateThis is the API for Lens Studio 4. For the latest API documentation, click here.
StorageOptions
Settings for saving values in a MultiplayerSession.
StorageOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
SurfaceOptions
Used with DeviceTracking.surfaceOptions to change settings for Surface tracking mode.
SurfaceOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
TapEventArgs
Arguments used with the InteractionComponent.onTap event.
TapEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
TextFill
Fill settings used by several text related classes.
Used in Text's textFill property, DropshadowSettings' fill property, and OutlineSettings' fill property.
TextFillThis is the API for Lens Studio 4. For the latest API documentation, click here.
TextInputSystem
Provides access to the device's input system. Accessible through global.textInputSystem.
TextInputSystemTextInputSystem.KeyboardOptions, TextInputSystem.KeyboardType, TextInputSystem.ReturnKeyTypeThis is the API for Lens Studio 4. For the latest API documentation, click here.
TextToSpeech.Options
Provides the configuration for the Text to Speech Module. It is used to control the language of the generated voice, the voice’s style and pace.
OptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
TextToSpeech.PhonemeInfo
Provides a map of what phoneme is said at what time in the synthesized speech.
PhonemeInfoThis is the API for Lens Studio 4. For the latest API documentation, click here.
TextToSpeech.WordInfo
Parameter returned in the onTTSCompleteHandler callback providing timing details for word pronunciation.
WordInfoThis is the API for Lens Studio 4. For the latest API documentation, click here.
TouchDataProvider
This provider is returned by global.touchSystem and allows your lens to handle any touches on the screen, and optionally let certain touch types to pass through (let Snapchat handle the touch).
Possible TouchType exception values:
- "TouchTypeNone"
- "TouchTypeTouch"
- "TouchTypeTap"
- "TouchTypeDoubleTap"
- "TouchTypeScale"
- "TouchTypePan"
- "TouchTypeSwipe"
TouchDataProviderThis is the API for Lens Studio 4. For the latest API documentation, click here.
TouchEndEventArgs
TouchEndEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
TouchMoveEventArgs
Arguments used with the InteractionComponent.onTouchMove event.
TouchMoveEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
TouchStartEventArgs
Arguments used with the InteractionComponent.onTouchStart event.
TouchStartEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
TrackedMesh
Represents a mesh generated by world tracking. Only available when world mesh tracking is supported and enabled.
TrackedMeshThis is the API for Lens Studio 4. For the latest API documentation, click here.
TrackedMeshHistogramResult
Provides histogram information about tracked world mesh faces in a given area. Returned by DeviceTracking.calculateWorldMeshHistogram().
TrackedMeshHistogramResultThis is the API for Lens Studio 4. For the latest API documentation, click here.
TrackedMeshHitTestResult
Provides information about a TrackedMesh surface hit during a raycast. Is returned in an array when calling DeviceTracking.hitTestWorldMesh() or DeviceTracking.raycastWorldMesh().
TrackedMeshHitTestResultThis is the API for Lens Studio 4. For the latest API documentation, click here.
TrackedPlane
A representation for plane detected by native tracking. Can be used with TrackedPoint.
TrackedPlaneThis is the API for Lens Studio 4. For the latest API documentation, click here.
TrackedPoint
A point on the real world not attached to any detected plane.
TrackedPointThis is the API for Lens Studio 4. For the latest API documentation, click here.
Transform
Controls the position, rotation, and scale of a SceneObject. Every SceneObject automatically has a Transform attached.
TransformThis is the API for Lens Studio 4. For the latest API documentation, click here.
Transformer
Applies additional transform processing on data for InputPlaceholders and OutputPlaceholders used with MLComponent. For more information, see the MLComponent Overview.
TransformerThis is the API for Lens Studio 4. For the latest API documentation, click here.
TransformerBuilder
Builds Transformer objects for MLComponent.
TransformerBuilderThis is the API for Lens Studio 4. For the latest API documentation, click here.
TriangleHit
Triangle hit information, available when a ray cast intersects a collision mesh.
Physics.TriangleHitThis is the API for Lens Studio 4. For the latest API documentation, click here.
TriggerPrimaryEventArgs
Arguments used with the InteractionComponent.onTriggerPrimary event.
TriggerPrimaryEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
UserContextSystem
Provides information about the user such as display name, birthday, and current weather. Accessible through global.userContextSystem.
All callbacks will execute as soon as the requested information is available. In some rare cases, the requested information may be completely unavailable, and the callback will never occur.
Note that formatted or localized strings may appear differently to users depending on their region.
UserContextSystemThis is the API for Lens Studio 4. For the latest API documentation, click here.
VertexSimulationSettings
Provides settings for vertex physics in the ClothVisual component.
VertexSimulationSettingsThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.AdditionalParam
Additional parameters are used to provide additional data for NlpModels and NlpResponses.
AdditionalParamThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.BaseNlpModel
NlpModels are used to provide the VoiceML NLP engine information about how the transcript of the input audio should be processed. BaseNlpModels is the abstract base class all NlpModels (NlpKeywordModel, NlpIntentModel) inherit from.
You can specify multiple NlpModels to process the same audio, all of their results will be returned in ListeningUpdateEventArgs
BaseNlpModelVoiceML.NlpIntentModel, VoiceML.NlpKeywordModelThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.BaseNlpResponse
The abstract base class all NlpResponses inherit from. NlpResponses are used as the result from the VoiceML NLP engine with information after processing the transcript of the input audio.
BaseNlpResponseThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.KeywordModelGroup
An NLP model used to detect keywords in the transcript of the input audio. For example, you can have keyword detection which will trigger every time the word "red" is said, and another trigger for the word "yellow".
KeywordModelGroupThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.ListeningErrorEventArgs
ListeningErrorEventArgs object returns in onListeningError callback. It contains the error code and description of the error.
ListeningErrorEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.ListeningOptions
Provides the configuration for the audio input processing output. This can either include NLP processing using the (nlpModels) or directly retrieving the transcription. speechContext provides the ability to further improve the transcription accuracy given an assumed context.
ListeningOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.ListeningUpdateEventArgs
The parameter when the callback registered on from VoiceMLModule.onListeningUpdate is called. This is to mark the input audio transcription (and possibly NlpModels as a result) was updated.
ListeningUpdateEventArgsThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.NlpCommandResponse
May be returned when enableSystemCommands() API is used. The NlpCommandResponse contains the results of the servers' NLP command model classification on the last sentence and indicates that a predetermined system command was detected. Current supported commands:
- “Take a Snap”: takes a snapshot.
- “Start Recording”: starts a video recording if not already started.
- "Stop Recording”: stops an ongoing video recording, if applicable.
NlpCommandResponseThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.NlpIntentModel
Specifies which NLP Intent model should run to classify the transcription of the input audio. NLP Intent classification meant to extract the meaning of a sentence rather than detecting certain keywords. Multiple intent models can be used on the same transcription, and will run only on complete sentences (isFinalTranscription = True). Supported intent models: VOICE_ENABLED_UI.
NlpIntentModelThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.NlpIntentResponse
Returned when NlpIntentModel was specificed in the ListeningOptions, it contains the results of the NLP Intent model classification on the last sentence. NlpIntentResponse will only run on complete sentences (isFinalTranscription = true).
NlpIntentResponseThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.NlpKeywordModel
Used to detect usage of certain keywords from the input audio.
Keyword detection (whose results will be returned in NlpKeywordResponse in the ListeningUpdateEventArgs) can happen in the mid input sentence (and in such case isFinalTranscription=false) or can happen at the end of the sentence (isFinalTranscription=true). Mid sentence detection have closer proximity to the time the word was spoken, but might be less accurate.
NlpKeywordModelThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.NlpKeywordResponse
NlpKeywordResponse will be returned if KeywordModel has been supplied as an input model in the ListeningOptions. The keyword model allows detection of keywords (or short phrases) in an input audio.
NlpKeywordResponseThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.NlpResponseStatus
The NLP Response Status indicates wether the NLP was successful in parsing the sentence.
NlpResponseStatusThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.PostProcessingAction
The PostProcessingAction is the base class for QnaAction and other post processing actions that need to processed after the transcription phase.
PostProcessingActionVoiceML.QnaActionThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.PostProcessingActionResponse
The PostProcessingActionResponse is the base class for QnaActionRespose and other post processing actions responses. It holds the id and status properties for all deriving objects.
PostProcessingActionResponseVoiceML.QnaResponseThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.PostProcessingActionResponseStatus
PostProcessingActionResponseStatusThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.QnaAction
QnaActionThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.QnaResponse
QnaResponseThis is the API for Lens Studio 4. For the latest API documentation, click here.
VoiceML.SpeechContext
Speech context is used in cases where specific words are expected from the users, the transcription accuracy of these words can be improved, by straightening their likelihood in context. The strength is scaled 1-10 (10 being the strongest increase) the default value is 5.
SpeechContextThis is the API for Lens Studio 4. For the latest API documentation, click here.
WorldOptions
Holds settings for world mesh tracking in DeviceTracking component. Accessible through DeviceTracking.worldOptions.
WorldOptionsThis is the API for Lens Studio 4. For the latest API documentation, click here.
WorldTrackingCapabilities
Provides information about whether certain world tracking features are supported by the device.
WorldTrackingCapabilitiesThis is the API for Lens Studio 4. For the latest API documentation, click here.