ScaleObject
ScaleObject is a built-in component for animating the scale of GameObjects over time. This component can be found in the built-in components section of the Assets Catalog and dragged onto any GameObject. Configure start and end scale values, duration, and control playback through pause, resume, and restart methods.
Properties
Event that fires when the scale animation completes.
Methods
Pauses the scale animation.
Returns
Restarts the scale animation from the beginning.
Returns
Resumes the scale animation from where it was paused.
Returns
Sets the duration for the scale animation in seconds.
Parameters
duration
Returns
Sets the target end scale for the animation.
Parameters
endScale
Returns
Sets the starting scale for the animation.
Parameters
startScale
Returns
Updated 13 days ago