Beispiel #1
0
        void Start()
        {
            // Supported types: float, Quaternion, Vector3
            DrawGraph.Add("Vec3Test", Vector3.zero)
            // Use System.Linq::ForEach( ... ) to assing group style values
            .ForEach(graph => graph
                     .SetLineWidth(2f)
                     .SetGraphHeight(120f)
                     .SetStepSize(0.25f)
                     .SetLimits(-2f, 2f)
                     );

            DrawGraph.Add("Empty graph test", 0f);

            //Combine two graphs in the same view
            DrawGraph.Get("c1").SetGroup("GroupC");
            DrawGraph.Get("c2").SetGroup("GroupC");
        }