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.
flavien ANDRE 899573c783
unity project added
3 years ago
..
ChangeListElements unity project added 3 years ago
Menus unity project added 3 years ago
AdapterListView.cs unity project added 3 years ago
AdapterListView.cs.meta unity project added 3 years ago
AlertBox.cs unity project added 3 years ago
AlertBox.cs.meta unity project added 3 years ago
BetterTextField.cs unity project added 3 years ago
BetterTextField.cs.meta unity project added 3 years ago
ChangeEntryGroup.cs unity project added 3 years ago
ChangeEntryGroup.cs.meta unity project added 3 years ago
ChangeListElements.meta unity project added 3 years ago
ChangesGroupHeader.cs unity project added 3 years ago
ChangesGroupHeader.cs.meta unity project added 3 years ago
ErrorPageView.cs unity project added 3 years ago
ErrorPageView.cs.meta unity project added 3 years ago
HistoryEntryComponent.cs unity project added 3 years ago
HistoryEntryComponent.cs.meta unity project added 3 years ago
IconButton.cs unity project added 3 years ago
IconButton.cs.meta unity project added 3 years ago
IconTextButton.cs unity project added 3 years ago
IconTextButton.cs.meta unity project added 3 years ago
ListNotice.cs unity project added 3 years ago
ListNotice.cs.meta unity project added 3 years ago
Menus.meta unity project added 3 years ago
PageComponent.cs unity project added 3 years ago
PageComponent.cs.meta unity project added 3 years ago
Paginator.cs unity project added 3 years ago
Paginator.cs.meta unity project added 3 years ago
ProgressView.cs unity project added 3 years ago
ProgressView.cs.meta unity project added 3 years ago
README.md unity project added 3 years ago
README.md.meta unity project added 3 years ago
SearchBar.cs unity project added 3 years ago
SearchBar.cs.meta unity project added 3 years ago
TabPageComponent.cs unity project added 3 years ago
TabPageComponent.cs.meta unity project added 3 years ago
TabView.cs unity project added 3 years ago
TabView.cs.meta unity project added 3 years ago
TextButton.cs unity project added 3 years ago
TextButton.cs.meta unity project added 3 years ago
TopBar.cs unity project added 3 years ago
TopBar.cs.meta unity project added 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/.