UIToolkitChartBinder
public sealed class UIToolkitChartBinder : MonoBehaviourConnects a ChartGuruElement in a UI Toolkit panel to things UXML cannot reference: a
scene ChartDataSource, and on Unity versions without asset attributes a chart or data asset.
Empty fields leave the element's own setting alone. Accepts a UnityEngine.UIElements.UIDocument or, on Unity 6.5
or newer, a PanelRenderer, and follows the host when its tree reloads.
Methods
Section titled “Methods”
Bind()
Section titled “Bind()”public void Bind()Finds the element in the UI panel and pushes the assigned source and assets into it.
Constructors
Section titled “Constructors”
UIToolkitChartBinder()
Section titled “UIToolkitChartBinder()”public UIToolkitChartBinder()Properties
Section titled “Properties”
UIPanel
Section titled “UIPanel”public Component UIPanel { get; set; }The UI Toolkit host. Accepts a UIDocument or, on Unity 6.5 or newer, a PanelRenderer.
Returns
UnityEngine.Component
Element
Section titled “Element”public ChartGuruElement Element { get; }The bound element, or null while the panel has none.
Returns
ChartGuru.ChartGuruElement
DataSource
Section titled “DataSource”public ChartDataSource DataSource { get; set; }The live data source pushed into the element.
Returns
ChartGuru.ChartDataSource
public ChartAsset Chart { get; set; }The chart asset pushed into the element, or null to keep the element's own.
Returns
ChartGuru.ChartAsset
public ChartDataAsset Data { get; set; }The data asset pushed into the element, or null to keep the element's own.
Returns
ChartGuru.ChartDataAsset