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
..
Icons beat-emup template + dorothy 3 years ago
Layouts beat-emup template + dorothy 3 years ago
Styles beat-emup template + dorothy 3 years ago
Icons.meta beat-emup template + dorothy 3 years ago
Layouts.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
StringAssets.cs beat-emup template + dorothy 3 years ago
StringAssets.cs.meta beat-emup template + dorothy 3 years ago
Styles.meta beat-emup template + dorothy 3 years ago
UiConstants.cs beat-emup template + dorothy 3 years ago
UiConstants.cs.meta beat-emup template + dorothy 3 years ago

README.md

Assets

This directory contains the non-code assets for the Collaborate UI.

Overview

<root>
  ├── Icons/
  ├── Layouts/
  ├── Styles/
  ├── StringAssets.cs
  └── UiConstants.cs
  • StringAssets.cs contains all the static string resources for the package.
  • UiConstants.cs conatins a number of static values used to control the UI.

Editing

USS and UXML files are inspired by the respective CSS and XML files. USS is a non-struct subset of CSS and each View and Component has the option of having its own USS and/or UXML file. For USS, to specifiy dark vs light style, prepend a .dark or .light to the line. For example:

.dark .divider-vertical {
    background-color: var(--divider-dark);
}

.light .divider-vertical {
    background-color: var(--divider-light);
}

Documentation about the two file types is provided within the Unity documentation for UiElements: https://docs.unity3d.com/2020.1/Documentation/Manual/UIElements.html

In general each Component and View will have its own layout file. When adding new components with their uxml factories the UIElements schema will need to updated within the editor if you want auto completion in your editor. Click Assets/Update UIElements Schema in the Editor to update the definitions.