private UIGraph _createGraph(string text, int y) { m_FMUgraph = AddUIComponent <UIGraph>(); m_FMUgraph.name = "fmuGraph"; m_FMUgraph.relativePosition = new Vector3(15f, y); m_FMUgraph.width = 100; m_FMUgraph.height = 100; m_FMUgraph.Clear(); m_FMUgraph.StartTime = DateTime.Now; m_FMUgraph.EndTime = DateTime.Now.AddMinutes(10); float[] array9 = new float[] { 1, 2, 3, 6, 5, 4, 1, 2, 3 }; m_FMUgraph.AddCurve("stringUserData", "localID", array9, 1f, color, float.NegativeInfinity); m_FMUgraph.Start(); m_FMUgraph.isVisible = true; m_FMUgraph.color = new Color32(150, 150, 150, 150); m_FMUgraph.enabled = true; m_FMUgraph.Show(); m_FMUgraph.spriteName = "toto"; m_FMUgraph.Update(); return(m_FMUgraph); }
public void UpdateGraph() { Graph.Update(); }