MoveObject
MoveObject is a built-in component for moving GameObjects along a path defined by travel points. This component can be found in the built-in components section of the Assets Catalog and dragged onto any GameObject. Add travel points to create a path, configure duration, and control playback through pause, resume, and restart methods.
Properties
Event that fires when the movement animation completes.
Methods
Adds a new travel point to the movement path.
Parameters
travelPointPosition
Returns
Clears all travel points from the movement path.
Returns
Called when the movement animation completes.
Returns
Pauses the movement animation.
Returns
Restarts the movement animation from the beginning.
Returns
Resumes the movement animation from where it was paused.
Returns
Sets the duration for the entire movement animation in seconds.
Parameters
duration
Returns
Updated 13 days ago