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

Method getLoopArray

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

* Get the array use for loop. * @returns The array use for loop

()

Source from the content-addressed store, hash-verified

71 * @returns The array use for loop
72 */
73 getLoopArray(): ReadonlyArray<T> {
74 const loopArray = this._loopArray;
75 if (this._loopArrayDirty) {
76 const array = this._array;
77 const count = array.length;
78 loopArray.length = count;
79 for (let i = 0; i < count; i++) {
80 loopArray[i] = array[i];
81 }
82 this._loopArrayDirty = false;
83 }
84 return loopArray;
85 }
86}

Callers 5

_setStateMethod · 0.80
_onUpdateMethod · 0.80
_onUpdateFunction · 0.80
updateMethod · 0.80
onPointerClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected