private GraphNodeType[] CreateNodes() { GraphNodeType[] node = new GraphNodeType[GetConnections.Count]; int i = 0; foreach (Dictionary <string, string> pair in GetConnections) { // get neat splunk data DateTime time; string host; GetUsefulInfo(pair, out time, out host); float x; float y; GetPoints(i, out x, out y); GraphNodeType newNodeType = GraphNodeType.CreateInstance(Node_Prefab, time, host, new Vector3(x, y, 2), MiniNodePrefab); // make new nodes children of ParentObject (should be NodeManager game object) newNodeType.getObject().transform.parent = Parent_Object.transform; newNodeType.setPosition(new Vector3(x, y, 2)); node[i++] = newNodeType; } return(node); }
public GraphNodeType InstProc(Vector3 createPos, DateTime metaTime, string hostname) { return(GraphNodeType.CreateInstance(procPrefab, metaTime, hostname, createPos, subNodePrefab)); }