文档

Unity Engine

Unity Engine

RefreshCustomRowHeights()

Refreshes the cache of custom row rects based on the heights returned by TreeView.GetCustomRowHeight.
阅读时间1 分钟最后更新于 2 个月前

Definition

protected virtual void RefreshCustomRowHeights()

Remarks

This method calls TreeView.GetCustomRowHeight for each of the current rows and caches the results. It is called automatically by the TreeView after TreeView.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.