- Home /
Click an object to show its group / structure / tree ?
Hi, i currently making Human Anatomy application with unity like Human Anatomy Atlas. right now, i stuck on showing it structure / tree (EX: when user clicked on object, its show it structure / tree / group on UI canvas). what i'm confused is :
what is this called ?
What logic i must use ?
Any tutorial on web ?
i don't know what to search on google :(
Here the screenshot from Human Anatomy atlas free:
Post in your actual code
$$anonymous$$ake a screenshot of your actual game (GUI)
i've not written code yet, because i don't really understand what is it called and what logic i've to use..
i think my actual game screenshot won't help any since i'm not created it yet, again.. i don't know where do i should start..
(i'm sorry its pretty noob question and bad grammar)
EDIT: i mean, i have created the game but not with it object structure / tree / whatever it called
It's not very confortable to start from scratch. Its not very hard to do sth like that, I think. Firstly you have to store your objects somehow on the screen. $$anonymous$$y first step would be to store all objects in a dictionary ( Vector3 , Gameobject ) and then u can click on any object, thats stored within. Then u can exactly say which object it is. Also if same name ( Raycast isnt used by doing this ) u get the exact one. However u can move onto each created object a script with a toogle(bool) into it, that makes the object show up in hirarchy if activsted by click. But notice. It isn't the best methode I think....
Your answer
Follow this Question
Related Questions
Conditionals in UI Drag and Drop? 2 Answers
The best way to control a game flow? 1 Answer
What's the Best Structure for a UI Menu? 0 Answers
Understanding UI Logic 0 Answers
(Logic) Switch GameObjects With Slider Using Arrays 0 Answers