Z.everyOff(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
Z.everyOff(func: () => void): void;
Stops a function that had been previously scheduled with Z.every(…) from being called again.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
func | function | The function passed to Z.every(…) that is to be no longer called. |
Example
Section titled “Example”function myRepeatingFunction() { //a function being repeatedly called elsewhere.}//stop calling myRepeatingFunctionZ.everyOff(myRepeatingFunction);