playMaker

Author Topic: Rotating UI Images  (Read 1264 times)

gregacuna

  • Full Member
  • ***
  • Posts: 142
Rotating UI Images
« 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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Rotating UI Images
« Reply #1 on: April 03, 2020, 03:42:53 AM »
Hi,

 It works here fine:



Bye,

 Jean

gregacuna

  • Full Member
  • ***
  • Posts: 142
Re: Rotating UI Images
« Reply #2 on: April 03, 2020, 12:17:40 PM »
Hey Jean...does that animate it so it rotates 1 degree per frame?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Rotating UI Images
« Reply #3 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

gregacuna

  • Full Member
  • ***
  • Posts: 142
Re: Rotating UI Images
« Reply #4 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Rotating UI Images
« Reply #5 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)