示例#1
0
    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();
    }
示例#2
0
 private void assetListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!assetWindow.Visible)
     {
         CenterForm(assetWindow);
         assetWindow.Show();
     }
     else
     {
         assetWindow.BringToFront();
     }
 }