Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


USS custom properties (variables)

Learn everything about USS custom properties.
Read time 1 minuteLast updated a month ago

USS variables, also called custom properties, define values that you can reuse in other USS rules. You can create variables for any type of USS property.

Topic

Description

Create USS variablesLearn how to create, use, and specify default values for USS variables.
Manage USS variables in UI BuilderLearn how to assign and remove a USS variable in UI Builder.
Introduction to USS built-in variablesUnderstand built-in USS variables and how to specify default values for Editor and runtime UI.
USS built-in variable referenceReference of all the USS built-in variables and their default values.
Get custom styles in C# scriptsUnderstand how to get the value of a custom style property applied to an element.

Additional resources