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

Function removeChild

packages/fairygui/src/display/DisplayObject.ts:360–365  ·  view source on GitHub ↗

* Remove a child display object * 移除子显示对象

(child: DisplayObject)

Source from the content-addressed store, hash-verified

358 * 移除子显示对象
359 */
360 public removeChild(child: DisplayObject): void {
361 const index = this._children.indexOf(child);
362 if (index >= 0) {
363 this.removeChildAt(index);
364 }
365 }
366
367 /**
368 * Remove child at specific index

Callers

nothing calls this directly

Calls 1

removeChildAtMethod · 0.45

Tested by

no test coverage detected