Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

BaseVerticalCollectionView.GetRootElementForId

Declaration

public UIElements.VisualElement GetRootElementForId(int id);

Parameters

Description
id The item identifier.

Returns

VisualElement The item's root element.

Description

Gets the root element of the specified collection view item.

This method provides an entry point to re-style elements added by Unity over the user-driven content. Ex. the drag handle in a ListView, or the Toggle in a TreeView.