Change Texture of static object on tap
Hello. I'm very confused when it comes to scripting and I really need help. I have a static 3D object and am trying to get it to change to a different texture every time I tap. I also want it to cycle through so I can go through every texture and then back to the first. I've been playing with behavior scripts but I can't seem to get it to work properly. Can anyone help?
Hi Marco,
Try this script which takes in a render visual, and then swaps the texture used in the material on touch:
Let me know if you need any clarification!
Thanks,
Jonathan
I already came up with something that works, but thanks for getting back to me!
- Marco