public static BTEditorGraph Create() { BTEditorGraph graph = ScriptableObject.CreateInstance <BTEditorGraph>(); graph.OnCreated(); graph.hideFlags = HideFlags.HideAndDontSave; graph.m_selection = new List <BTEditorGraphNode>(); return(graph); }