Example #1
0
    public override VisualElement CreateInspectorGUI()
    {
        var root = _visualElement;

        root.Clear();
        _visualTreeAsset.CloneTree(root);

        var button = root.Q <Button>("Generate");

        button.clickable.clicked += () =>
        {
            _meshManager.Generate();
        };

        return(root);
    }