public static void Init() { AssetWindow window = (AssetWindow)EditorWindow.GetWindow(typeof(AssetWindow)); window.Show(); window.minSize = new Vector2(400, 650); window.maxSize = new Vector2(400, 650); ScanForAssets(); }
private void assetListToolStripMenuItem_Click(object sender, EventArgs e) { if (!assetWindow.Visible) { CenterForm(assetWindow); assetWindow.Show(); } else { assetWindow.BringToFront(); } }