public static void Show_BloxListPopup(BloxContainer target, Action onAddCallback) { BloxListPopup window = EditorWindow.GetWindow <BloxListPopup>(true, "Blox Definitions", true); Texture2D image = plyEdGUI.LoadTextureResource("BloxEditor.res.icons.blox_mono" + (EditorGUIUtility.isProSkin ? "_p" : "") + ".png", typeof(BloxListWindow).Assembly, FilterMode.Point, TextureWrapMode.Clamp); window.titleContent = new GUIContent("Blox Definitions", image); window.target = target; window.onAddCallback = onAddCallback; window.minSize = new Vector2(200f, 250f); window.ShowUtility(); }
private void AddExistingBloxDef() { BloxListPopup.Show_BloxListPopup(this.Target, this.CacheBloxList, null); }