Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

TreeView.OnGUI

public void OnGUI(Rect rect);

Parameters

rectRect where the TreeView is rendered.

Description

This is the main GUI method of the TreeView, where the TreeViewItems are processed and drawn.

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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答