Editor.Model.IEntityRegistry
ClassA registry of various entities.
Index
Properties
Methods
Example
// Get a list of abstract entities
const entityRegistry = pluginSystem.findInterface(Editor.Model.IEntityRegistry);
const abstractFilter = (entityType) => {
return entityRegistry.getMeta(entityType).isAbstract;
};
Extends
Properties
interfaceId
staticinterfaceId:InterfaceId
Unique identifier for the IEntityRegistry interface, used to look up this component via findInterface.
Methods
getMeta()
getMeta(
entityType):Meta
Get the metadata of an entity.
Parameters
| Parameter | Type |
|---|---|
entityType | string |
Returns
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