using System; using UnityEngine; using UnityEngine.UIElements; namespace VRC.ExampleCentral.Window { public class SplitView : TwoPaneSplitView { public new class UxmlFactory : UxmlFactory { } } public class PackageButton : VisualElement { public new class UxmlFactory : UxmlFactory { } public Label PackageLabel; private VisualElement selectionElement; private Clickable clickable; /// /// Called when Package Button is clicked. /// public event Action clicked { add { if (clickable != null) clickable.clicked += value; } remove { if (clickable != null) clickable.clicked -= value; } } public PackageButton() { VisualTreeAsset uxml = Resources.Load("PackageTabButton"); uxml.CloneTree(this); PackageLabel = this.Query