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

Method CloseAllEditors

Source/Editor/Modules/WindowsModule.cs:237–248  ·  view source on GitHub ↗

Closes all windows that are using given element to view/edit it. The item.

(ContentItem item)

Source from the content-addressed store, hash-verified

235 /// </summary>
236 /// <param name="item">The item.</param>
237 public void CloseAllEditors(ContentItem item)
238 {
239 for (int i = 0; i < Windows.Count; i++)
240 {
241 var win = Windows[i];
242 if (win.IsEditingItem(item))
243 {
244 win.Close();
245 i--;
246 }
247 }
248 }
249
250 /// <summary>
251 /// Saves the current workspace layout.

Callers 2

Calls 2

IsEditingItemMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected