title: C# Generate Tree Diagram Node Coordinates
body: <p>I am trying to draw a tree diagram in Unity3D using c#, I have a list of data which contains the following variables: </p>
  
  <pre><code>public class ObjectData
  {
      public string ID;
      public string hierarchyParent;
      public int hierarchyLevel;
  }
  </code></pre>
  
  <p>The parent variable contains the ID of the parent object and the level variable contains an ascending number of the row ie Top row = 1, Row below = 2 etc. I need to get the coordinates in a 2D space of each node of this tree diagram for an unknown number of items. If I try to create this by setting the rows and adding a constant x value, connection lines often cross and are uncentered. I have looked at some other examples but have not been able to find a tutorial for my input data. Thanks!</p>