private static void Open(EchoFilter filter, UnityAction <EchoFilter> onComplete) { var window = (AddFliterWindow)GetWindow(typeof(AddFliterWindow), false, "Echo Filter"); window.minSize = new Vector2(300f, 150f); window._onComplete = onComplete; window._filter = filter; window._name = window._filter.Name; window._tagString = window._filter.GetTags(); window.Show(); }
public static void Edit(EchoFilter filter) { Open(filter, null); }