MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Open

Method Open

Source/Editor/Windows/ContentWindow.cs:1110–1129  ·  view source on GitHub ↗

Opens the specified content item. The content item.

(ContentItem item)

Source from the content-addressed store, hash-verified

1108 /// </summary>
1109 /// <param name="item">The content item.</param>
1110 public void Open(ContentItem item)
1111 {
1112 if (item == null)
1113 throw new ArgumentNullException();
1114
1115 // Check if it's a folder
1116 if (item.IsFolder)
1117 {
1118 // Show folder
1119 var folder = (ContentFolder)item;
1120 folder.Node.Expand();
1121 _tree.Select(folder.Node);
1122 if (!_showAllContentInTree)
1123 _view.SelectFirstItem();
1124 return;
1125 }
1126
1127 // Open it
1128 Editor.ContentEditing.Open(item);
1129 }
1130
1131 /// <summary>
1132 /// Selects the specified asset in the content view.

Callers 13

GetNodeMethod · 0.45
OnRowDoubleClickAssetMethod · 0.45
OnRowDoubleClickMethod · 0.45
OnRowRightClickMethod · 0.45
OnDebugFlowMethod · 0.45
OnDebuggerStepOutMethod · 0.45
OnKeyDownMethod · 0.45
OnNavigateAssetMethod · 0.45
OnNavigateVisjectNodeMethod · 0.45
OnMouseUpMethod · 0.45

Calls 3

SelectFirstItemMethod · 0.80
ExpandMethod · 0.45
SelectMethod · 0.45

Tested by

no test coverage detected