I have the next case: I have a cube (not a solid cube, just the mesh), an as a user I want the ability to click on an individual line on this cube, an that line should be highlighted. The rest of the cube remain the same. And If I click in a another line, then the previous line is deselected and the new line is highlighted.
I'm new on unity, but as fas a I could understand one option is to create a parent game object called "Cube", for example, and create 12 children game objects , one for every line that is part of the cube. In that way I can create the functionality without a problem for every game object.
But I wonder if there is a better way to do this. Because for a cube there are only 12 lines, but for a another more complex polyhedron that solution could be a nightmare.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
108 People are following this question.
Dynamic meshes not visible on android (samsung galaxy s6)
how to twist mesh object?
How to combine meshes seamlessly?
Shader color to texture