over 8 years ago
We get a click event when we click a Button in UI , but how to get a click event while clicking on
a GameObject from our scene .
It is very simple .
To get a click event from a object , add a collider to that object and then add a
script to it with a simple Code :
public class GetClick: MonoBehaviour
This script will give a click event from that GameObject .
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2023 FindNerd.com. All rights reserved.
Sign up using