Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make objects without renderer selectable with by click in Unity (editor mode)?

I've created my own sprite renderer using Graphics.DrawMesh() and drawing them in editor mode too. Now i facing a problem: I cannot select sprite with mouse.

So the question is: how can I specify bounds of the object, to let the editor knows the area that can be clicked on to select an object?

like image 574
Yarg Avatar asked Jan 23 '26 19:01

Yarg


1 Answers

Step 1: click on the icon above the transform component (left from GameObject name)

imageTage

Step 2: select one of the colorful oval icons to mark your object. It becomes selectable in scene (editor only)

enter image description here

like image 199
Nika Kasradze Avatar answered Jan 26 '26 13:01

Nika Kasradze



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!