- Home /
Question by
4myGod · Jun 25, 2017 at 01:55 PM ·
circleclickableempty game object
Can I make a clickable object without an image?
I want to create an invisible object, preferably a circle, so that I can add an onMouseDown and do stuff like create other objects and shoot them from the center point of that invisible object. From my research the only way seems to be by creating a prefab or image of some sort.
I tried creating a new "empty" object and adding a circle collider 2d, then added my script to that object but it does not seem to run the onMouseDown when I click where it should be.
Comment
Answer by 4myGod · Jun 25, 2017 at 02:01 PM
Nevermind, I was using onMouseDown instead of OnMouseDown.