Scene
The scene graph: scene objects and their transforms, prefabs, layers, and the scene itself.
Commonly used
SceneObjectAn object in the scene hierarchy, containing a Transform and possibly Component.TransformControls the position, rotation, and scale of a SceneObject.ObjectPrefabRepresents reusable SceneObject hierarchy stored as a resource.LayerSetUsed to describe a set of layers that an object belongs to or interacts with.ScriptSceneRepresents the Lens scene.LookAtComponentOrients a SceneObject towards a target SceneObject.
Guides
Touch and InteractionsYou can add interactivity to the Lenses you create in Lens Studio by handling user touch input events.In-Viewport AuthoringCreate interactive Scene Editor handles with @runInEditor, persist @input values, and omit viewport-only assets from the packed Lens.Script ComponentsIn Lens Studio, scripts are added to the scene as Script Components, which are attached to Scene Objects.Script EventsThis guide provides a breakdown of Lens Events available.Accessing ComponentsScript Components in Lens Studio are able to reference one another whether they have been created with JavaScript, TypeScript or Custom Component.TypeScriptWith Lens Studio 5.0, TypeScript is supported natively within Lens Studio.
All APIs in this topic
Add components to a scene object and reference assets and other modules with a script input.
Components, assets, and modules
| API | Description |
|---|---|
| LookAtComponent | Orients a SceneObject towards a target SceneObject. |
| ObjectPrefab | Represents reusable SceneObject hierarchy stored as a resource. |
Objects and data
| API | Description |
|---|---|
| LayerSet | Used to describe a set of layers that an object belongs to or interacts with. |
| SceneObject | An object in the scene hierarchy, containing a Transform and possibly Component. |
| ScriptScene | Represents the Lens scene. |
| Transform | Controls the position, rotation, and scale of a SceneObject. |
Related topics
InteractionTouch, tap, gestures and manipulation, SPECS hand gestures (Gesture Module), keyboard and text input, controllers, and haptics.Graphics, Materials & Particles › Meshes & EffectsMesh visuals and mesh building, VFX, post effects, and Gaussian splats.AR & Tracking › BodyBody tracking, body textures and meshes, and object tracking.