기술 자료

Unity Engine

Unity Engine

fixedItemHeight

The height of a single item in the list, in pixels.
읽는 시간 1분최근 업데이트: 20일 전

Definition

[UxmlAttribute(obsoleteNames = new string[] { "itemHeight", "item-height" })]public float fixedItemHeight { get; set; }

Remarks

This property must be set when using the BaseVerticalCollectionView.virtualizationMethod is set to
FixedHeight
, for the collection view to function. If set when BaseVerticalCollectionView.virtualizationMethod is
DynamicHeight
, it serves as the default height to help calculate the number of items necessary and the scrollable area, before items are laid out. It should be set to the minimum expected height of an item.