Version: 2022.1
言語: 日本語
Create a custom style for a custom control
Introduction to USS

Style UI

You can style your UI with a Unity Style Sheet (USS). USS files are text files inspired by Cascading Style Sheets (CSS) from HTML. USS syntax is the same as CSS syntax, but USS includes overrides and customizations to work better with Unity.

トピック 説明
Introduction to USS Understand the fundamental building blocks of a USS.
USS selectors Learn how to use USS selectors by examples.
USS properties Learn everything about USS properties.
USS custom properties (variables) Learn everything about USS custom properties.
Apply styles with C# Learn how to apply style sheet to visual elements in a C# script.
Best practices for USS Understand what you need to know when you write USS.

その他の参考資料

Create a custom style for a custom control
Introduction to USS