MCPcopy Create free account
hub / github.com/esengine/esengine / getPlugin

Method getPlugin

packages/core/src/Core.ts:611–617  ·  view source on GitHub ↗

* @zh 获取插件实例 * @en Get plugin instance * * @param name - @zh 插件名称 @en Plugin name * @returns @zh 插件实例,如果未安装则返回undefined @en Plugin instance, or undefined if not installed * * @example * ```typescript * const myPlugin = Core.getPlugin('my-plugin'); * if (m

(name: string)

Source from the content-addressed store, hash-verified

609 * ```
610 */
611 public static getPlugin(name: string): IPlugin | undefined {
612 if (!this._instance) {
613 return undefined;
614 }
615
616 return this._instance._pluginManager.getPlugin(name);
617 }
618
619 /**
620 * @zh 检查插件是否已安装

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected