Skip to main content

Editor.IInterface

Class

Base interface type for Editor plugin system objects.

Index

Example

// IInterface is the root of the interface hierarchy. Any service
// resolved via findInterface() is an IInterface at its base.
// In practice you always cast to the concrete type you asked for.
const iface: Editor.IInterface = this.pluginSystem.findInterface(Editor.Model.IModel);
const model = iface as Editor.Model.IModel;
console.log('Project scene layers:', model.project.scene.layers.combinedIds.toArray().length);

Extends

Extended by

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