You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonathan Miller 00e4582c08 Plugins system 3 years ago
..
ChangeListElements Plugins system 3 years ago
Menus Plugins system 3 years ago
AdapterListView.cs Plugins system 3 years ago
AdapterListView.cs.meta Plugins system 3 years ago
AlertBox.cs Plugins system 3 years ago
AlertBox.cs.meta Plugins system 3 years ago
BetterTextField.cs Plugins system 3 years ago
BetterTextField.cs.meta Plugins system 3 years ago
ChangeEntryGroup.cs Plugins system 3 years ago
ChangeEntryGroup.cs.meta Plugins system 3 years ago
ChangeListElements.meta Plugins system 3 years ago
ChangesGroupHeader.cs Plugins system 3 years ago
ChangesGroupHeader.cs.meta Plugins system 3 years ago
ErrorPageView.cs Plugins system 3 years ago
ErrorPageView.cs.meta Plugins system 3 years ago
HistoryEntryComponent.cs Plugins system 3 years ago
HistoryEntryComponent.cs.meta Plugins system 3 years ago
IconButton.cs Plugins system 3 years ago
IconButton.cs.meta Plugins system 3 years ago
IconTextButton.cs Plugins system 3 years ago
IconTextButton.cs.meta Plugins system 3 years ago
ListNotice.cs Plugins system 3 years ago
ListNotice.cs.meta Plugins system 3 years ago
Menus.meta Plugins system 3 years ago
PageComponent.cs Plugins system 3 years ago
PageComponent.cs.meta Plugins system 3 years ago
Paginator.cs Plugins system 3 years ago
Paginator.cs.meta Plugins system 3 years ago
ProgressView.cs Plugins system 3 years ago
ProgressView.cs.meta Plugins system 3 years ago
README.md Plugins system 3 years ago
README.md.meta Plugins system 3 years ago
SearchBar.cs Plugins system 3 years ago
SearchBar.cs.meta Plugins system 3 years ago
TabPageComponent.cs Plugins system 3 years ago
TabPageComponent.cs.meta Plugins system 3 years ago
TabView.cs Plugins system 3 years ago
TabView.cs.meta Plugins system 3 years ago
TextButton.cs Plugins system 3 years ago
TextButton.cs.meta Plugins system 3 years ago
TopBar.cs Plugins system 3 years ago
TopBar.cs.meta Plugins system 3 years ago

README.md

Resources

This directory contains the UIElements-based user interface components.

Overview

Each component is defined as its own class and file in this directory.

Adding a New Component

Each component is a C# class that extends the UiElements' VisualElement class and provides a UXML factory. If no UXML parameters are required/desired, a simple factory like this (taken from AlertBar) works:

public new class UxmlFactory : UxmlFactory<AlertBar> { }

Just adding this line to the bottom of the component class with the <AlertBar> replaced with the name of the class. Adding UXML parameters used to be covered in the official docs. Until it is returned: look at the source code for any UiElements class such as TextElement.

To use the component in UXML (with editor inspections) the xml schema needs to be updated within the Unity Editor. Instructions on how to do that is contained in ../Assets/.