Files
ChunilENG/Assets/Chart And Graph/Tutorials/Pyramid/PyramidFeed.cs

21 lines
552 B
C#
Raw Normal View History

2025-03-10 16:42:23 +09:00
#define Graph_And_Chart_PRO
using UnityEngine;
using System.Collections;
using ChartAndGraph;
public class PyramidFeed : MonoBehaviour {
public Material newCategory;
// Use this for initialization
void Start () {
var chart = GetComponent<PyramidChart>();
chart.DataSource.AddCategory("New category", new ChartDynamicMaterial( newCategory,Color.blue,Color.white), "New", "and Fresh", null);
chart.DataSource.SetCategoryHeightRatio("New category", 3f);
}
// Update is called once per frame
void Update () {
}
}