You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Josh 0c950004ab beat-emup template + dorothy 3 years ago
..
ChangeListElements beat-emup template + dorothy 3 years ago
Menus beat-emup template + dorothy 3 years ago
AdapterListView.cs beat-emup template + dorothy 3 years ago
AdapterListView.cs.meta beat-emup template + dorothy 3 years ago
AlertBox.cs beat-emup template + dorothy 3 years ago
AlertBox.cs.meta beat-emup template + dorothy 3 years ago
BetterTextField.cs beat-emup template + dorothy 3 years ago
BetterTextField.cs.meta beat-emup template + dorothy 3 years ago
ChangeEntryGroup.cs beat-emup template + dorothy 3 years ago
ChangeEntryGroup.cs.meta beat-emup template + dorothy 3 years ago
ChangeListElements.meta beat-emup template + dorothy 3 years ago
ChangesGroupHeader.cs beat-emup template + dorothy 3 years ago
ChangesGroupHeader.cs.meta beat-emup template + dorothy 3 years ago
ErrorPageView.cs beat-emup template + dorothy 3 years ago
ErrorPageView.cs.meta beat-emup template + dorothy 3 years ago
HistoryEntryComponent.cs beat-emup template + dorothy 3 years ago
HistoryEntryComponent.cs.meta beat-emup template + dorothy 3 years ago
IconButton.cs beat-emup template + dorothy 3 years ago
IconButton.cs.meta beat-emup template + dorothy 3 years ago
IconTextButton.cs beat-emup template + dorothy 3 years ago
IconTextButton.cs.meta beat-emup template + dorothy 3 years ago
ListNotice.cs beat-emup template + dorothy 3 years ago
ListNotice.cs.meta beat-emup template + dorothy 3 years ago
Menus.meta beat-emup template + dorothy 3 years ago
PageComponent.cs beat-emup template + dorothy 3 years ago
PageComponent.cs.meta beat-emup template + dorothy 3 years ago
Paginator.cs beat-emup template + dorothy 3 years ago
Paginator.cs.meta beat-emup template + dorothy 3 years ago
ProgressView.cs beat-emup template + dorothy 3 years ago
ProgressView.cs.meta beat-emup template + dorothy 3 years ago
README.md beat-emup template + dorothy 3 years ago
README.md.meta beat-emup template + dorothy 3 years ago
SearchBar.cs beat-emup template + dorothy 3 years ago
SearchBar.cs.meta beat-emup template + dorothy 3 years ago
TabPageComponent.cs beat-emup template + dorothy 3 years ago
TabPageComponent.cs.meta beat-emup template + dorothy 3 years ago
TabView.cs beat-emup template + dorothy 3 years ago
TabView.cs.meta beat-emup template + dorothy 3 years ago
TextButton.cs beat-emup template + dorothy 3 years ago
TextButton.cs.meta beat-emup template + dorothy 3 years ago
TopBar.cs beat-emup template + dorothy 3 years ago
TopBar.cs.meta beat-emup template + dorothy 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/.