How to click and highlight individual lines from cube?
Hi.
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.
Thanks.
Your answer
Follow this Question
Related Questions
Dynamic meshes not visible on android (samsung galaxy s6) 2 Answers
Need Help! 0 Answers
how to twist mesh object? 0 Answers
Texture position on multiple mesh 0 Answers