Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gregacuna on April 03, 2020, 03:19:08 AM

Title: Rotating UI Images
Post by: gregacuna on April 03, 2020, 03:19:08 AM
I have a button and have added an empty...and then some images which I want to have on the button. Now I want to rotate the images. If in the editor I rotate the empty on the Z it does exactly what I want, but have tried several different actions, Rotate, Rotate Advanced, Rotate and a few DOTween actions, but nothing works. How do I rotate something in UI?

Thanks!
Title: Re: Rotating UI Images
Post by: jeanfabre on April 03, 2020, 03:42:53 AM
Hi,

 It works here fine:

(https://i.imgur.com/mYQPc46.png)

Bye,

 Jean
Title: Re: Rotating UI Images
Post by: gregacuna on April 03, 2020, 12:17:40 PM
Hey Jean...does that animate it so it rotates 1 degree per frame?
Title: Re: Rotating UI Images
Post by: djaydino on April 04, 2020, 03:42:30 AM
Hi.
That setting would be 1 degree per second.

It would not be a good idea to do this per frame.
As some computers would have 60 frames per second and others 100
Title: Re: Rotating UI Images
Post by: gregacuna on April 04, 2020, 12:17:46 PM
I'm confused. It works okay when I have it set with ONLY the "Every Frame" option checked. If I have both "Every Frame" and "Every Second" it doesn't rotate at all. Any ideas?
Title: Re: Rotating UI Images
Post by: djaydino on April 04, 2020, 03:52:11 PM
Hi, have you tried setting a larger value?

just tested on a clean scene, it works fine on my end (both every frame and and per second)