GUI Repeat Button to spin object while button is held.

I am a noob, and I haven’t been able to find how to script what I want. We are doing an interactive training piece where the goal is to have an object that the clients can spin to see all sides, then click buttons attached to the object on any of the sides. For now, I have created a RepeatButton in my scene GUI, but I have no idea how to tell it that when the button is held, start to spin the object around. Stop spinning on click release. Any suggestions or links? Thanks!

Sounds like you should go through some tutorials to learn how to use Unity before diving in, otherwise you’ll just run into these road-blocks at every turn.

Take a look here as a start to figuring out your current query: