RotateObject
RotateObject is a built-in component for rotating GameObjects continuously or over a specified duration. This component can be found in the built-in components section of the Assets Catalog and dragged onto any GameObject. Configure rotation speed, duration, and control playback through pause, resume, and restart methods.
Properties
Event that fires when the rotation animation completes.
Methods
Pauses the rotation animation.
Returns
Restarts the rotation animation from the beginning.
Returns
Resumes the rotation animation from where it was paused.
Returns
Sets the duration for the rotation animation in seconds.
Parameters
duration
Returns
Sets the rotation speed vector for each axis (x, y, z).
Parameters
speedVector
Returns
Updated 13 days ago