Skip to main content

Editor.Model.Meta

Class

The metadata of an entity.

Index

Example

const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const assets = model.project.assetManager.assets;

if (assets.length === 0) {
console.log('No assets in project.');
return;
}

const entity = assets[0] as unknown as Editor.Model.Entity;
const meta: Editor.Model.Meta = entity.meta;
console.log(`Meta isAbstract: ${meta.isAbstract}`);

Extends

Extended by

Properties

isAbstract

readonly isAbstract: boolean

Whether the entity can be created.

Methods

getTypeName()

static getTypeName(): string

Returns the type name of this class.

Returns

string

Overrides

ScriptObject.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

ScriptObject.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object is of the specified type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

ScriptObject.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

ScriptObject.isSame