Class ContentTreeNode
Content folder tree node.
Inheritance
Implements
Namespace: FlaxEditor.Content
Assembly: FlaxEngine.CSharp.dll
Syntax
public class ContentTreeNode : TreeNode, IComparable, IDrawable
Constructors
ContentTreeNode(ContentTreeNode, ContentFolderType, String)
Initializes a new instance of the ContentTreeNode class.
Declaration
protected ContentTreeNode(ContentTreeNode parent, ContentFolderType type, string path)
Parameters
|
ContentTreeNode
parent
The parent node. |
|
FlaxEditor.Content.ContentFolderType
type
The folder type. |
|
System.String
path
The folder path. |
ContentTreeNode(ContentTreeNode, String)
Initializes a new instance of the ContentTreeNode class.
Declaration
public ContentTreeNode(ContentTreeNode parent, string path)
Parameters
|
ContentTreeNode
parent
The parent node. |
|
System.String
path
The folder path. |
Fields
_folder
The folder.
Declaration
protected ContentFolder _folder
Field Value
|
FlaxEditor.Content.ContentFolder
|
Properties
CanDelete
Whether this node can be deleted.
Declaration
public virtual bool CanDelete { get; }
Property Value
|
System.Boolean
|
CanDuplicate
Whether this node can be duplicated.
Declaration
public virtual bool CanDuplicate { get; }
Property Value
|
System.Boolean
|
CanHaveAssets
Returns true if that folder can import/manage assets.
Declaration
public bool CanHaveAssets { get; }
Property Value
|
System.Boolean
True if can contain assets for project, otherwise false |
CanHaveScripts
Returns true if that folder can import/manage scripts.
Declaration
public bool CanHaveScripts { get; }
Property Value
|
System.Boolean
|
Folder
Gets the content folder item.
Declaration
public ContentFolder Folder { get; }
Property Value
|
FlaxEditor.Content.ContentFolder
|
FolderType
Gets the type of the folder.
Declaration
public ContentFolderType FolderType { get; }
Property Value
|
FlaxEditor.Content.ContentFolderType
|
NavButtonLabel
ParentNode
Gets the parent node.
Declaration
public ContentTreeNode ParentNode { get; }
Property Value
|
ContentTreeNode
|
Path
Gets the folder path.
Declaration
public string Path { get; }
Property Value
|
System.String
|
Methods
DoDragDrop()
Declaration
protected override void DoDragDrop()
Overrides
Draw()
Declaration
public override void Draw()
Overrides
OnDestroy()
Declaration
public override void OnDestroy()
Overrides
OnDragDropHeader(DragData)
Declaration
protected override DragDropEffect OnDragDropHeader(DragData data)
Parameters
|
DragData
data
|
Returns
|
DragDropEffect
|
Overrides
OnDragEnterHeader(DragData)
Declaration
protected override DragDropEffect OnDragEnterHeader(DragData data)
Parameters
|
DragData
data
|
Returns
|
DragDropEffect
|
Overrides
OnDragLeaveHeader()
Declaration
protected override void OnDragLeaveHeader()
Overrides
OnDragMoveHeader(DragData)
Declaration
protected override DragDropEffect OnDragMoveHeader(DragData data)
Parameters
|
DragData
data
|
Returns
|
DragDropEffect
|
Overrides
OnKeyDown(KeyboardKeys)
Declaration
public override bool OnKeyDown(KeyboardKeys key)
Parameters
|
KeyboardKeys
key
|
Returns
|
System.Boolean
|
Overrides
OnLongPress()
Declaration
protected override void OnLongPress()
Overrides
StartRenaming()
Shows the rename popup for the item.
Declaration
public void StartRenaming()
UpdateFilter(String)
Updates the query search filter.
Declaration
public void UpdateFilter(string filterText)
Parameters
|
System.String
filterText
The filter text. |