using UnityEngine; using UIWidgets; namespace UIWidgetsSamples { public class TreeViewSample : TreeViewCustom { /// /// Sets component data with specified item. /// /// Component. /// Item. protected override void SetData(TreeViewSampleComponent component, ListNode item) { component.SetData(item.Node, item.Depth); } /// /// Set highlights colors of specified component. /// /// Component. protected override void HighlightColoring(TreeViewSampleComponent component) { base.HighlightColoring(component); component.Text.color = HighlightedColor; } /// /// Set select colors of specified component. /// /// Component. protected override void SelectColoring(TreeViewSampleComponent component) { base.SelectColoring(component); component.Text.color = SelectedColor; } /// /// Set default colors of specified component. /// /// Component. protected override void DefaultColoring(TreeViewSampleComponent component) { base.DefaultColoring(component); component.Text.color = DefaultColor; } } }