Base Classes
Classes other APIs build on. You'll meet them in type signatures (every component is a Component, every asset an Asset) but rarely use them directly.
Commonly used
ComponentThe base class for all components.AssetBase class for all assets used in the engine.ScriptObjectBase class for objects representing Script data.ProviderBase class for all resource providers.BinAssetA file based asset.
Guides
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.Accessing ComponentsScript Components in Lens Studio are able to reference one another whether they have been created with JavaScript, TypeScript or Custom Component.Debugging with LoggerLens Studio provides two main ways to log messages to the Logger panel (visible at the bottom of the screen, or via Window → Utilities → Logger).Scripting IntroductionLens Studio comes with scripting support to help you add interactivity to your Lenses, from helper scripts and tweens to fully custom components.Touch and InteractionsYou can add interactivity to the Lenses you create in Lens Studio by handling user touch input events.
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 |
|---|---|
| Asset | Base class for all assets used in the engine. |
| BinAsset | A file based asset. |
| Component | The base class for all components. |
| CustomAsset | Base class for all assets used in the engine. |
Objects and data
| API | Description |
|---|---|
| BasicTransform | Provides basic information about a transformation. |
| DeviceDependentBinFileProvider | |
| Provider | Base class for all resource providers. |
| ScriptObject | Base class for objects representing Script data. |
| SerializableWithUID | Low-level data class. |
Enums
| API | Description |
|---|---|
| LoadStatus |