private void DrawBackGroundWindow(int windowID) { EditorToolsUtils.DrawScrollViewWindow(windowID, ref _backGroundWindowPosition, ref _selectedBackgroundMaterialIndex, _backGroundMaterials, _backgroundPreviewWidth, _backgroundPreviewHeight); EditorPrefs.SetInt("_selectedBackgroundMaterialIndex", _selectedBackgroundMaterialIndex); GetSelectedBackgroundMaterial(_selectedBackgroundMaterialIndex); }
private void DrawPrefabPreviewWindow(int windowID) { EditorToolsUtils.DrawScrollViewWindow(windowID, ref _paleteWindowPosition, ref _selectedPrefabIndex, _bricksPrefabs, _prefabPreviewWidth, _prefabPreviewHeight); EditorPrefs.SetInt("_selectedPrefabIndex", _selectedPrefabIndex); GetSelectedPrefab(_selectedPrefabIndex); }