GetFoldoutIndent(TreeViewItem<TIdentifier>)
Returns the horizontal foldout offset for an item. This is where the foldout arrow is rendered.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor.CoreModule
GetFoldoutIndent(TreeViewItem<T>)
protected float GetFoldoutIndent(TreeViewItem<TIdentifier> item)
Parameters
Item used to determine the indent.
Returns
Type | Description |
|---|---|
| float | Indent for the foldout arrow. |
Remarks
Use this when overriding TreeView<TIdentifier>.RowGUI to make custom GUI content for the item.
Additional Resources: TreeView<TIdentifier>.GetContentIndent.