PO/Library/PackageCache/com.unity.collab-proxy@1.9.0/Editor/Collaborate/Assets
Залетов Федор 573b3fda65 Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
..
Icons Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
Layouts Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
Styles Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
Icons.meta Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
Layouts.meta Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
README.md Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
README.md.meta Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
StringAssets.cs Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
StringAssets.cs.meta Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
Styles.meta Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
UiConstants.cs Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00
UiConstants.cs.meta Okey, really realy first commit. Troubleshooting errors 2022-01-12 10:39:15 +03:00

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.