What is the best way to rotate an object (on the z axis) with a GUI component? I am making a kind of sandbox/create style game, and for scaling, I used a horizontalslider by setting the objects localscale.
It's really up to you, or you could google studies on user interaction and usability. You could use a slider for that, or a couple of buttons (rotate counterclockwise, rotate anti-counterclockwise), or detect a drag on the object itself.
can you post your code here, because i have the same problem and don’t know what to write.