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

Method createObject

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

* Create object from URL * 从 URL 创建对象

(pkgName: string, resName: string)

Source from the content-addressed store, hash-verified

173 * 从 URL 创建对象
174 */
175 public static createObject(pkgName: string, resName: string): GObject | null {
176 const pkg = UIPackage.getByName(pkgName);
177 if (pkg) {
178 return pkg.createObject(resName);
179 }
180 return null;
181 }
182
183 /**
184 * Create object from URL string

Callers 2

internalCreateObjectMethod · 0.45
createComponentMethod · 0.45

Calls 6

getItemByNameMethod · 0.95
internalCreateObjectMethod · 0.95
getByNameMethod · 0.80
keysMethod · 0.80
warnMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected