Skip to main content
All CollectionsInteractionsPrefabs
Move To Touch Prefab (Touch)

Move To Touch Prefab (Touch)

A prefab that an object to the position of a user's touch.

Updated this week

Overview

Move To Touch prefabs move an object to the X and/or Y location a user touched.

Move To Touch prefabs should be added to the object you want the touch event to fire from. You'll select the object that will move using the Target control.


Prefab Controls

Target

Select the object that should move.

Position X

Choose if the object should move horizontally.

Position Y

Choose if the object should move vertically.

Duration

Set the length of the animation.

Spring

Set the easing curve for the animation. Higher spring values add more bounce to the animation.

Did this answer your question?