using UnityEngine; using UnityEngine.UI; using XCharts.Runtime; namespace XCharts.Example { [DisallowMultipleComponent] [ExecuteInEditMode] public class Example_Test : MonoBehaviour { BaseChart chart; void Awake() { chart = gameObject.GetComponent(); var btnTrans = transform.parent.Find("Button"); if (btnTrans) { btnTrans.gameObject.GetComponent