Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RefreshCustomRowHeights()

Refreshes the cache of custom row rects based on the heights returned by TreeView<TIdentifier>.GetCustomRowHeight.
Read time 1 minuteLast updated 9 days ago

Definition

protected virtual void RefreshCustomRowHeights()

Remarks

This method calls TreeView<TIdentifier>.GetCustomRowHeight for each of the current rows and caches the results. It is called automatically by the TreeView after TreeView<TIdentifier>.BuildRows is called to ensure heights are in sync with the rows. Calling this method manually is needed when row heights changes dynamically e.g after a user action changes the content of a row.