Swap Textures on click for a model

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?

I’d be happy to take a look at your project. Could you land your changes and share the project with the support workspace?

Thank you so much! I have sent you an invitation!