itemAlternativeBackgroundUssClassName
The USS class name for odd rows in the BaseVerticalCollectionView.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Field
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static readonly string itemAlternativeBackgroundUssClassName
Remarks
Unity adds this USS class to every odd-numbered item in the BaseVerticalCollectionView when the _showAlternatingRowBackgrounds property is set to or . When the property is set to either of those values, odd-numbered items are displayed with a different background color than even-numbered items. This USS class is used to differentiate odd-numbered items from even-numbered items. When the property is set to , the USS class is not added, and any styling or behavior that relies on it's invalidated.
ContentOnlyAllshowAlternatingRowBackgroundsshowAlternatingRowBackgroundsNone