MCPcopy Create free account
hub / github.com/melonjs/melonJS / getChildByGUID

Method getChildByGUID

packages/melonjs/src/renderable/container.js:674–677  ·  view source on GitHub ↗

* return the child corresponding to the specified GUID * note : avoid calling this function every frame since * it parses the whole object list each time * @param {string|RegExp|number|boolean} guid - child GUID * @returns {Renderable} corresponding child or null

(guid)

Source from the content-addressed store, hash-verified

672 * @returns {Renderable} corresponding child or null
673 */
674 getChildByGUID(guid) {
675 const obj = this.getChildByProp("GUID", guid);
676 return obj.length > 0 ? obj[0] : null;
677 }
678
679 /**
680 * return all child in this container

Callers

nothing calls this directly

Calls 1

getChildByPropMethod · 0.95

Tested by

no test coverage detected