public static void ShowPalette() { Instance = (PaletteWindow) EditorWindow.GetWindow(typeof (PaletteWindow)); Instance.titleContent = new GUIContent("Palette"); }
private static void ShowPalette() { PaletteWindow.ShowPalette(); }
public static void ShowPalette() { instance = (PaletteWindow)EditorWindow.GetWindow (typeof(PaletteWindow)); instance.titleContent = new GUIContent("Palette"); }
private void UpdateCurrentPieceInstance(PaletteWindow.PaletteItemSelection itemSelectionEvent) { _itemSelected = itemSelectionEvent.Item; _itemPreview = itemSelectionEvent.Preview; _pieceSelected = (LevelPiece) _itemSelected.GetComponent<LevelPiece>(); Repaint(); }