Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws a full-width interactive tree row whose non-leaf content toggles expansion when double-clicked, while preserving single-click disclosure-arrow behavior.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public InnoEditor.ImGui.TreeNodeResult InnoEditor.ImGui.ImGuiWidget.TreeNode(string id, System.Action<InnoEditor.ImGui.TreeNodeDrawContext> onDraw, in InnoEditor.ImGui.TreeNodeOptions options)

Parameter id: Stable row identifier.

Parameter onDraw: Frame-local content drawing for visible or explicitly preserved rows; clipped ordinary rows do not invoke it.

Parameter options: Tree row options.

Interaction and row geometry for the submitted item.

Exception T:System.ArgumentOutOfRangeException: An explicit flattened depth is negative.