文档

Unity Engine


User Manual

Script Reference

Unity Engine


OnGUI(Rect)

This is the main GUI method of the TreeView, where the TreeViewItems are processed and drawn.
阅读时间1 分钟最后更新于 1 个月前

Definition

public virtual void OnGUI(Rect rect)

Parameters

rect

Rect where the TreeView is rendered.

Remarks

Call this at the point at which the TreeView should be rendered in the given Rect. If the TreeView is constructed with a MultiColumnHeader the header is included in the rect provided.