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 1f14de672b Adds library files 4 years ago
..
ChangeListElements Adds library files 4 years ago
Menus Adds library files 4 years ago
AdapterListView.cs Adds library files 4 years ago
AdapterListView.cs.meta Adds library files 4 years ago
AlertBox.cs Adds library files 4 years ago
AlertBox.cs.meta Adds library files 4 years ago
BetterTextField.cs Adds library files 4 years ago
BetterTextField.cs.meta Adds library files 4 years ago
ChangeEntryGroup.cs Adds library files 4 years ago
ChangeEntryGroup.cs.meta Adds library files 4 years ago
ChangeListElements.meta Adds library files 4 years ago
ChangesGroupHeader.cs Adds library files 4 years ago
ChangesGroupHeader.cs.meta Adds library files 4 years ago
ErrorPageView.cs Adds library files 4 years ago
ErrorPageView.cs.meta Adds library files 4 years ago
HistoryEntryComponent.cs Adds library files 4 years ago
HistoryEntryComponent.cs.meta Adds library files 4 years ago
IconButton.cs Adds library files 4 years ago
IconButton.cs.meta Adds library files 4 years ago
IconTextButton.cs Adds library files 4 years ago
IconTextButton.cs.meta Adds library files 4 years ago
ListNotice.cs Adds library files 4 years ago
ListNotice.cs.meta Adds library files 4 years ago
Menus.meta Adds library files 4 years ago
PageComponent.cs Adds library files 4 years ago
PageComponent.cs.meta Adds library files 4 years ago
Paginator.cs Adds library files 4 years ago
Paginator.cs.meta Adds library files 4 years ago
ProgressView.cs Adds library files 4 years ago
ProgressView.cs.meta Adds library files 4 years ago
README.md Adds library files 4 years ago
README.md.meta Adds library files 4 years ago
SearchBar.cs Adds library files 4 years ago
SearchBar.cs.meta Adds library files 4 years ago
TabPageComponent.cs Adds library files 4 years ago
TabPageComponent.cs.meta Adds library files 4 years ago
TabView.cs Adds library files 4 years ago
TabView.cs.meta Adds library files 4 years ago
TextButton.cs Adds library files 4 years ago
TextButton.cs.meta Adds library files 4 years ago
TopBar.cs Adds library files 4 years ago
TopBar.cs.meta Adds library files 4 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/.