MCPcopy
hub / github.com/aframevr/aframe / getChildEntities

Method getChildEntities

src/core/a-entity.js:252–264  ·  view source on GitHub ↗

* @returns {Array } Direct children that are entities.

()

Source from the content-addressed store, hash-verified

250 * @returns {Array<Element>} Direct children that are entities.
251 */
252 getChildEntities () {
253 var children = this.children;
254 var childEntities = [];
255
256 for (var i = 0; i < children.length; i++) {
257 var child = children[i];
258 if (child instanceof AEntity) {
259 childEntities.push(child);
260 }
261 }
262
263 return childEntities;
264 }
265
266 /**
267 * Initialize component.

Callers 3

playMethod · 0.95
pauseMethod · 0.95
a-entity.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected