Editor.Model.AssetMeta
ClassStores metadata for an asset, including type information and associated properties.
Index
Properties
Methods
Example
// AssetMeta extends InspectableMeta with `isNative` — true for built-in
// assets shipped with Lens Studio, false for project-imported files.
// Look it up by entity type name through IEntityRegistry.
const registry = this.pluginSystem.findInterface(
Editor.Model.IEntityRegistry
) as Editor.Model.IEntityRegistry;
const meta = registry.getMeta('Scene') as Editor.Model.AssetMeta;
console.log(`caption: ${meta.caption}, isNative: ${meta.isNative}`);
Extends
Properties
caption
readonlycaption:string
Read-only string label displayed for this inspectable in the Editor.
Inherited from
icon
readonlyicon:Icon
Read-only icon associated with this inspectable in the Editor UI.
Inherited from
isAbstract
readonlyisAbstract:boolean
Whether the entity can be created.
Inherited from
isNative
readonlyisNative:boolean
Indicates whether the asset is a native (built-in) asset.
Methods
getTypeName()
staticgetTypeName():string
Returns the type name of this class.
Returns
string
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object is of the specified type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object refers to the same instance as the given object.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean