Documentation

Unity Engine

Unity Engine

Style UI

Style your UI with USS.
Read time 1 minuteLast updated 2 months ago

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.

Topic

Description

Introduction to USSUnderstand the fundamental building blocks of a USS.
USS selectorsLearn how to use USS selectors by examples.
USS propertiesLearn 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 USSUnderstand what you need to know when you write USS.
Theme Style Sheet (TSS)Learn how to use TSS files for management purposes.
Apply masking effects in UI ToolkitLearn how to use USS to apply masking effects.

Additional resources