Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetRootElementForId(int)

Gets the root element of the specified collection view item.
Read time 1 minuteLast updated 4 days ago

Definition

public VisualElement GetRootElementForId(int id)

Parameters

id

The item identifier.

Returns

Type

Description

VisualElementThe item's root element.

Remarks

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.