コード例 #1
0
    public void UpdateTool()
    {
        HandleUtility.AddDefaultControl(GUIUtility.GetControlID(FocusType.Passive));
        _grid.DrawGrid();
        Handles.BeginGUI();

        GUILayout.Window(0, new Rect(15f, 20f, 135f, Camera.current.pixelRect.height - 20f), DrawPrefabPreviewWindow, "Level Editor");
        GUILayout.Window(1, new Rect(Camera.current.pixelRect.width - 150f, 20f, 135f, Camera.current.pixelRect.height - 20f), DrawBackGroundWindow, "Background Materials");

        Handles.EndGUI();
    }