文档

Unity Engine

Download Unity

Unity Engine

USS properties

Learn everything about USS properties.
阅读时间1 分钟最后更新于 2 个月前

A USS property assigns a style or behavior to a
VisualElement
. You can specify values for a USS property.

Topic

Description

USS property data typesUSS data types define typical values accepted by USS properties and functions.
USS common propertiesDescribes the most common USS properties, their syntax and accepted values, and differences from CSS.
Position element with the layout engineUnderstand the basic USS layout properties.
Relative and absolute positioning C# exampleUse relative and absolute positioning to lay out UI in C#.
Set background imagesLearn how to set background image and 9-slice images with UI Toolkit.
Image import settingsApply import settings for Textures, Sprites, and Vector images before you use them as a background for a visual element in the UI Builder.
USS transformUnderstand the USS transform properties, their syntax, and accepted values.
USS transitionUnderstand the USS transition properties, their syntax, and accepted values.
USS properties referenceList of all USS properties, whether they're inherited and their animatability.
USS color keywordsList of all the color keywords.
Create a custom swirl filterCreate a custom filter with a swirl effect.

Additional resources