MCPcopy Create free account
hub / github.com/galacean/engine / add

Method add

packages/core/src/utils/SafeLoopArray.ts:27–30  ·  view source on GitHub ↗

* Add item to the array. * @param index - The index of the array * @param item - The item which want to be added

(index: number, item: T)

Source from the content-addressed store, hash-verified

25 * @param item - The item which want to be added
26 */
27 add(index: number, item: T): void {
28 this._array.splice(index, 0, item);
29 this._loopArrayDirty = true;
30 }
31
32 /**
33 * Remove item from the array.

Callers 15

_translateMethod · 0.45
addCameraMethod · 0.45
addRendererMethod · 0.45
addUICanvasMethod · 0.45
addOnStartScriptMethod · 0.45
addOnUpdateScriptMethod · 0.45
addOnLateUpdateScriptMethod · 0.45
addOnUpdateAnimationsMethod · 0.45
addOnUpdateRenderersMethod · 0.45
_addScriptMethod · 0.45
addSceneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected