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

Function getInternalAPI

packages/editor-runtime/src/PluginAPI.ts:75–81  ·  view source on GitHub ↗

* 获取内部 API

()

Source from the content-addressed store, hash-verified

73 * 获取内部 API
74 */
75function getInternalAPI(): IPluginAPIInternal {
76 const api = window.__ESENGINE_SDK__?.api;
77 if (!api) {
78 throw new Error('[PluginAPI] 插件 API 未初始化,请确保编辑器已正确启动');
79 }
80 return api;
81}
82
83/**
84 * 插件 API

Callers 6

sceneFunction · 0.85
sceneOrNullFunction · 0.85
entityStoreFunction · 0.85
messageHubFunction · 0.85
servicesFunction · 0.85
resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected