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

Method createObjectFromURL

packages/fairygui/src/package/UIPackage.ts:187–193  ·  view source on GitHub ↗

* Create object from URL string * 从 URL 字符串创建对象

(url: string)

Source from the content-addressed store, hash-verified

185 * 从 URL 字符串创建对象
186 */
187 public static createObjectFromURL(url: string): GObject | null {
188 const pi = UIPackage.getItemByURL(url);
189 if (pi) {
190 return pi.owner?.internalCreateObject(pi) ?? null;
191 }
192 return null;
193 }
194
195 /**
196 * Get item by URL

Callers 5

internalCreateObjectMethod · 0.45
constructorMethod · 0.45
loadFromPackageMethod · 0.45
showModalWaitMethod · 0.45
addItemMethod · 0.45

Calls 2

getItemByURLMethod · 0.80
internalCreateObjectMethod · 0.80

Tested by

no test coverage detected