- Home /
How to select a hidden MeshRenderer in SceneView?
Hi all
I have a Mesh being presented in the SceneView via a MeshFilter and MeshRenderer.
The Mesh, Components and GameObject all have their flags set to HideAndDontSave. The geometry is drawn in the scene and the user is prevented from interfering with it.
I would, however, like the user to be able to select the geometry in the SceneView (by clicking or dragging a marquee, just like a normal MeshRenderer).
I am hoping to implement a callback such that when the hidden geometry is selected, I can programatically change the selection to a separate GameObject.
Is this possible?
I've been thinking about adding colliders, implementing raycasts, etc, but I don't want to interfere with physics layers. I'm also not entirely sure how to implement the mouse events in the editor.
Thanks, Ves
Can you show us some code ? Everything is doable. Good luck.
Your answer
Follow this Question
Related Questions
How can I set a selection-sphere in the editor 1 Answer
Object Selection does not stop on next object 0 Answers
How to select prefab children in scene view 1 Answer
How do I hide object in scene editor? 3 Answers
Selecting objects in scene view with left mouse button always selects child object. 1 Answer