mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Merge branch 'Cabin_Icarus' of https://github.com/yika-aixi/xNode into Cabin_Icarus
This commit is contained in:
commit
5b8a751aaf
@ -8,6 +8,18 @@ using Object = UnityEngine.Object;
|
||||
namespace XNodeEditor {
|
||||
[InitializeOnLoad]
|
||||
public partial class NodeEditorWindow : EditorWindow {
|
||||
|
||||
[MenuItem("Icarus/Node Editor/Close All Editor Window")]
|
||||
static void CloseAllNodeEditorWindow()
|
||||
{
|
||||
var windows = Resources.FindObjectsOfTypeAll<NodeEditorWindow>();
|
||||
|
||||
foreach (var window in windows)
|
||||
{
|
||||
window.Close();
|
||||
}
|
||||
}
|
||||
|
||||
public static NodeEditorWindow current;
|
||||
|
||||
/// <summary> Stores node positions for all nodePorts. </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user