top of page

Demonstrations

swipe.PNG
swipe2.PNG

Swipe Touch

Using the touch swipe function in the unity, trial of multi color line is created that also acts like a drawing where as soon as user draw it starts disappearing after 3 seconds with width 0.5 and end 0.1. The more the swipe more and longer the trails are. In the color selection inspector if double clicked on the palate new color will start that is how to get multiple color.​

Here, a script is written and attached to the Main Camera. Main Camera detects the swipe and click on the screen and then executes swipe specific action that is to create the swipe trail with multicolor.  Video of a game play, and two screen shots are provided as a part of the demonstration. 

 
 
 
 

Bibiliography

Unity Learn. 2021. Touch Input for Mobile Scripting - Unity Learn. [online] Available at: <https://learn.unity.com/tutorial/touch-input-for-mobile-scripting> [Accessed 19 February 2021].

​

This reference is selected because the explanation on touch for scripting purpose is very well and beginner friendly. This is a part of the unity course also.

​

Carotenuto, A., 2021. Unity 3D: Working With Touch Input. [online] binPress. Available at: <https://www.binpress.com/unity-3d-working-with-touch-input/> [Accessed 19 February 2021].

​

This reference is selected as it shown with codes and some explanation how single touch and multiple touch input is handles in unity. The author has explained how to detect touch and various touch phases with all the code related to every topic possible.

​

Technologies, U., 2021. Unity - Scripting API: Touch.position. [online] Docs.unity3d.com. Available at: <https://docs.unity3d.com/ScriptReference/Touch-position.html> [Accessed 19 February 2021].

​

Here the defination for the position is provided with the short snapshot of the code to use. for every other topic there is a resource from unity but for now only this is referenced here. This reference is vary simple and easy to follow.

​

​

 
 
 
 
 
 
 

BE AN EXCLUSIVE 50 ZONES MEMBER AND RECEIVE  NEWS AND UPDATES TO YOUR EMAIL

Thanks for submitting!

bottom of page