Skip to main content

Editor.Model.AssetMeta

Class

Stores metadata for an asset, including type information and associated properties.

Index

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

readonly caption: string

Read-only string label displayed for this inspectable in the Editor.

Inherited from

InspectableMeta.caption


icon

readonly icon: Icon

Read-only icon associated with this inspectable in the Editor UI.

Inherited from

InspectableMeta.icon


isAbstract

readonly isAbstract: boolean

Whether the entity can be created.

Inherited from

InspectableMeta.isAbstract


isNative

readonly isNative: boolean

Indicates whether the asset is a native (built-in) asset.

Methods

getTypeName()

static getTypeName(): string

Returns the type name of this class.

Returns

string

Overrides

InspectableMeta.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

InspectableMeta.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object is of the specified type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

InspectableMeta.isOfType


isSame()

isSame(other): boolean

Returns true if this object refers to the same instance as the given object.

Parameters

ParameterType
otherScriptObject

Returns

boolean

Inherited from

InspectableMeta.isSame