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

Method getController

packages/fairygui/src/core/GComponent.ts:401–408  ·  view source on GitHub ↗

* Get controller by name * 通过名称获取控制器

(name: string)

Source from the content-addressed store, hash-verified

399 * 通过名称获取控制器
400 */
401 public getController(name: string): Controller | null {
402 for (const c of this._controllers) {
403 if (c.name === name) {
404 return c;
405 }
406 }
407 return null;
408 }
409
410 /**
411 * Add controller

Callers 8

addItemMethod · 0.45
addItemAtMethod · 0.45
setItemCheckableMethod · 0.45
setItemCheckedMethod · 0.45
isItemCheckedMethod · 0.45
handleItemClickMethod · 0.45
constructExtensionMethod · 0.45
setupItemMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected