Question by
Bohemond · Aug 19, 2017 at 08:09 AM ·
gameobjectscriptingbasicsmousedown
How can I click on another object in script ?
Hi ! ^^
I want to change a value in my script when the mouse click on another object which not contains the script. How can I do this ?
I know the command OnMouseDown and public gameObject and I think it's something like this ^^
Thanks for your answer ! ^^
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612133049im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
random an image after a event ends 0 Answers
Disable and enable emission property of a material via C# script? 0 Answers
Get Audio Source On Another Object 1 Answer
Empty gameobject just to hold scripts? 2 Answers
Unity Addressable for player skins 0 Answers