- Home /
Tech tree element positioning
Situation: I have a list of objects with details on them. Name, Id, unlocks/prerequisites. I want to place them on a panel/image in a way that makes sense. Each object can have up to 8 unlocks, 4 on each side. Each object can have multiple parents (need multiple tech researched to unlock)
What I have: Tech card- gameobject with image to display tech details, connectors for child/parent indication lines. Tech tree panel- scroll rect where I can place the cards. Line drawing functionality- I can place lines between 2 points.
Question: I'm stuck on how to place the cards in the tech tree. I'm thinking tiers, top for parent, one length down for child generation 1, etc. Each child spaced one card length to the right/left of parent, with padding between.
Is there a standard solution to this? A reverse parcel algorithm I don't know about, a ui component that places objects with rules that ensure spacing? Do I just make empty objects with size and use a normal grid?
Thanks for any suggestions or pointers to solutions.
Your answer
Follow this Question
Related Questions
All UI getting pink in windows 1 Answer
Input Field shortening string when used with Mathf.Clamp? 0 Answers
a function is working on editor but not working on android divice 1 Answer
Change scene and play it by clicking UI Button? Scene does just load but not start playmode? 1 Answer
Scrollview Without Canvas 1 Answer