Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Make a prefab appear and disappear based on mouse click / finger touch.

$
0
0
I have a canvas on which I have added a 'Fixed Joystick' prefab downloaded from the asset store.
I want to make this joystick appear on the screen only when the mouse click is detected, or when the finger is touching the screen. When the mouse click is released, or the finger is lifted from the screen, the joystick should disappear.

I am a beginner at Unity, so trying to figure out how to go ahead with this. Kindly guide..

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>