CanRename(TreeViewItem)
Override this method to control whether the item can be renamed using a keyboard shortcut or when clicking an already selected item.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor.CoreModule
protected virtual bool CanRename(TreeViewItem item)
Parameters
Can this item be renamed?
Returns
Type | Description |
|---|---|
| bool |
Remarks
Keyboard shortcuts: Windows/Linux: F2; Mac OS X: Return. Default behavior: returns false.