Version: 2021.3
언어: 한국어

TreeView.GetCustomRowHeight

매뉴얼로 전환
protected float GetCustomRowHeight (int row, IMGUI.Controls.TreeViewItem item);

파라미터

row Row index.
item Item for given row.

반환

float Height of row.

설명

Override to control individual row heights.

Override this method if custom row rects are needed for each row in the TreeView, for example if you have content that can vary in height depending on the content. This method is called internally by the TreeView for each row after BuildRows have been called. If this method is not overridden then the rowHeight property is used for all rows.

This method should only be overridden if row heights can differ; if all rows have same height then use the rowHeight property as this is more performant for large data sets.

The heights returned by this method are cached. To update the cache call RefreshCustomRowHeights.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961