Version: 2021.2
Styling individual inline elements
Styling USS selectors with UI Builder

Creating and managing StyleSheets (USS)

Add a StyleSheet

To add a StyleSheet to the current UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
Document (UXML), use the + dropdown menu and select one of the following options:

  1. Create New USS: This opens a Save File Dialog to create a new StyleSheet in your project.
  2. Add Existing USS: This opens the Open File Dialog to add an existing StyleSheet to the UI Document.

You can also right-click anywhere inside the StyleSheets pane tree view to access these option menu.

Remove a StyleSheet

To remove a StyleSheet from the active UI Document, right-click on the StyleSheet and select Remove USS. This requires a full save of all unsaved changes.

A single Active StyleSheet always appears bold. If you create a new USS Selector from the Create new selector… field, it’s added to the Active StyleSheet. To change the Active StyleSheet, right-click on a StyleSheet and select Set as Active USS.

When editing Sub-Documents, the StyleSheets that belong to parent documents appear grayed out. These provide context but are otherwise read-only.

Styling individual inline elements
Styling USS selectors with UI Builder
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961