Class StringListView
Inherited Members
TreeView.CenterRectUsingSingleLineHeight(ref Rect)
TreeView.RenameEnded(TreeView.RenameEndedArgs)
TreeView.CanStartDrag(TreeView.CanStartDragArgs)
TreeView.SetupDragAndDrop(TreeView.SetupDragAndDropArgs)
TreeView.HandleDragAndDrop(TreeView.DragAndDropArgs)
TreeView.RowGUI(TreeView.RowGUIArgs)
Namespace: UnityEditor.SceneTemplate
Assembly: solution.dll
Syntax
public class StringListView : TreeView
Constructors
StringListView(string[], TreeViewState)
Declaration
public StringListView(string[] models, TreeViewState treeViewState = null)
Parameters
Type | Name | Description |
---|---|---|
string[] | models | |
TreeViewState | treeViewState |
Methods
BuildRoot()
Abstract method that is required to be implemented. By default this method should create the full tree of TreeViewItems and return the root.
Declaration
protected override TreeViewItem BuildRoot()
Returns
Type | Description |
---|---|
TreeViewItem | The root of the tree. This item can later be accessed by 'rootItem'. |
Overrides
DoubleClickedItem(int)
Override this method to handle double click events on an item.
Declaration
protected override void DoubleClickedItem(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | ID of TreeViewItem that was double clicked. |
Overrides
IsFirstItemSelected()
Declaration
public bool IsFirstItemSelected()
Returns
Type | Description |
---|---|
bool |
KeyEvent()
Override this method to handle events when the TreeView has keyboard focus.
Declaration
protected override void KeyEvent()
Overrides
Events
elementActivated
Declaration
public event Action<int> elementActivated
Event Type
Type | Description |
---|---|
Action<int> |