I tried to add this function by following the code in this project. However, it didn’t work because this project was intended to change one part of the whole model specifically, and the project didn’t work on my smartphone when i try to pay with it either.
At the moment, I have a model, and three png textures. What I want to achieve is, when I press the button, the whole texture of my model is to be swapped to the second one, then press again, swap to the third one and at last coming back to the first one as a loop. Is it possible to do it in the javascript?