├── .gitignore ├── .vs └── unity-editor-gui │ └── v14 │ └── .suo ├── Assets ├── ResourcesEditor.meta ├── ResourcesEditor │ └── Templates.meta ├── Scripts.meta ├── Scripts │ ├── Editor.meta │ └── Editor │ │ ├── GUISkinEditor.cs │ │ ├── GUISkinEditor.cs.meta │ │ ├── MultiWindowEditor.cs │ │ └── MultiWindowEditor.cs.meta ├── Test Assets.meta └── Test Assets │ ├── TestGUISkin.guiskin │ ├── TestGUISkin.guiskin.meta │ ├── button.png │ └── button.png.meta ├── Docs └── Inspector.PNG ├── Images └── example.gif ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityAdsSettings.asset └── UnityConnectSettings.asset ├── README.md └── UnityPackageManager └── manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | # =============== # 2 | # Unity generated # 3 | # =============== # 4 | [Tt]emp/ 5 | [Oo]bj/ 6 | [Bb]uild 7 | [Ll]ibrary/ 8 | sysinfo.txt 9 | 10 | # ===================================== # 11 | # Visual Studio / MonoDevelop generated # 12 | # ===================================== # 13 | [Ee]xported[Oo]bj/ 14 | /*.userprefs 15 | /*.csproj 16 | /*.pidb 17 | /*.suo 18 | /*.sln* 19 | /*.user 20 | /*.unityproj 21 | /*.booproj 22 | 23 | # ============ # 24 | # OS generated # 25 | # ============ # 26 | .DS_Store* 27 | ._* 28 | .Spotlight-V100 29 | .Trashes 30 | Builds 31 | Icon? 32 | ehthumbs.db 33 | [Tt]humbs.db 34 | -------------------------------------------------------------------------------- /.vs/unity-editor-gui/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/.vs/unity-editor-gui/v14/.suo -------------------------------------------------------------------------------- /Assets/ResourcesEditor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1610a9a1cf0b14b40b5b4436ddc29ba9 3 | folderAsset: yes 4 | timeCreated: 1470605783 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/ResourcesEditor/Templates.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec0e45f53a32d7f4eb7cecb8adfb9445 3 | folderAsset: yes 4 | timeCreated: 1470605453 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2df6ea66400c7084cbd2891015169f69 3 | folderAsset: yes 4 | timeCreated: 1453932768 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51623d2ed6073da43b97f988505cb45a 3 | folderAsset: yes 4 | timeCreated: 1453933121 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/Editor/GUISkinEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | 7 | [CustomEditor(typeof(GUISkin))] 8 | public class GUISkinEditor : MultiWindowEditor 9 | { 10 | [System.Flags] 11 | enum ControlFlags 12 | { 13 | Normal = 0x1, 14 | Hover = 0x2, 15 | Active = 0x4, 16 | Focused = 0x8, 17 | Background = 0x10, 18 | Text = 0x20, 19 | Custom = 0x40, 20 | UseON = 0x80, 21 | Misc = 0x100, 22 | ALL = 0xffff, 23 | Interactable = Normal | Hover | Active | Focused, 24 | } 25 | enum SelectionMode 26 | { 27 | Default = 0, 28 | Custom = 1, 29 | Options = 2, 30 | } 31 | class Style 32 | { 33 | public string name; 34 | public ControlFlags flags; 35 | public GUIStyle style; 36 | 37 | public Style(string n,GUIStyle s, ControlFlags t) 38 | { 39 | name = n; 40 | style = s; 41 | flags = t; 42 | } 43 | } 44 | 45 | private static int sLabelWitdh = 130; 46 | 47 | private Vector2 _mainScroll = new Vector2(0, 0); 48 | private Vector2 _auxScroll = new Vector2(0, 0); 49 | 50 | private GUISkin _guiSkin; 51 | 52 | private Style [] _styles; 53 | 54 | private Style _selectedStyle; 55 | 56 | private GUIStyle _clipboardStyle; 57 | private GUIStyle _clipboardSelectedStyle; 58 | 59 | private GUIStyle _currentCustomStyle; 60 | 61 | private string[] _defaultStylesOptionNames; 62 | private int _selectedDefaultOptionIndex = 0; 63 | 64 | 65 | // Colors 66 | private Color _guiStyleAreaColor; 67 | 68 | 69 | private SelectionMode _selectionMode = SelectionMode.Default; 70 | 71 | public void OnEnable() 72 | { 73 | SetupMultiWindow(0.6f); 74 | 75 | _guiSkin = target as GUISkin; 76 | CreateData(); 77 | 78 | _guiStyleAreaColor = new Color(1.0f, 0.95f, 0.875f); 79 | } 80 | 81 | void CreateData() 82 | { 83 | _defaultStylesOptionNames = new string[20]; 84 | _styles = new Style[20]; 85 | 86 | _styles[0] = new Style("Box" , _guiSkin.box , ControlFlags.Normal| ControlFlags.Text); 87 | _styles[1] = new Style("Button" , _guiSkin.button , ControlFlags.Interactable | ControlFlags.Background | ControlFlags.Text); 88 | _styles[2] = new Style("Toggle" , _guiSkin.toggle , ControlFlags.Interactable | ControlFlags.Background | ControlFlags.UseON | ControlFlags.Text); 89 | _styles[3] = new Style("Label" , _guiSkin.label , ControlFlags.Interactable | ControlFlags.Background | ControlFlags.Text); 90 | _styles[4] = new Style("TextField" , _guiSkin.textField , ControlFlags.Interactable | ControlFlags.Text); 91 | _styles[5] = new Style("TextArea" , _guiSkin.textArea , ControlFlags.Interactable | ControlFlags.Text); 92 | _styles[6] = new Style("Window" , _guiSkin.window , ControlFlags.Normal); 93 | _styles[7] = new Style("Horizontal Slider" , _guiSkin.horizontalSlider , ControlFlags.Normal); 94 | _styles[8] = new Style("Horizontal Slider Thumb" , _guiSkin.horizontalSliderThumb , ControlFlags.Normal); 95 | _styles[9] = new Style("Vertical Slider" , _guiSkin.verticalSlider , ControlFlags.Normal); 96 | _styles[10] = new Style("Vertical Slider Thumb" , _guiSkin.verticalSliderThumb , ControlFlags.Normal); 97 | _styles[11] = new Style("ScrollView" , _guiSkin.scrollView , ControlFlags.Normal); 98 | _styles[12] = new Style("HorizontalScrollbar" , _guiSkin.horizontalScrollbar , ControlFlags.Normal); 99 | _styles[13] = new Style("HorizontalScrollbar Thumb" , _guiSkin.horizontalScrollbarThumb , ControlFlags.Normal); 100 | _styles[14] = new Style("HorizontalScrollbar Left Button" , _guiSkin.horizontalScrollbarLeftButton , ControlFlags.Normal); 101 | _styles[15] = new Style("HorizontalScrollbar Right Button" , _guiSkin.horizontalScrollbarRightButton , ControlFlags.Normal); 102 | _styles[16] = new Style("Vertical Scrollbar" , _guiSkin.verticalScrollbar , ControlFlags.Normal); 103 | _styles[17] = new Style("Vertical ScrollbarThumb" , _guiSkin.verticalScrollbarThumb , ControlFlags.Normal); 104 | _styles[18] = new Style("Vertical Scrollbar Up Button" , _guiSkin.verticalScrollbarUpButton , ControlFlags.Normal); 105 | _styles[19] = new Style("Vertical Scrollbar Down Button" , _guiSkin.verticalScrollbarDownButton , ControlFlags.Normal); 106 | 107 | for (int a=0;a<_styles.Length;++a) 108 | { 109 | _defaultStylesOptionNames[a] = _styles[a].name; 110 | } 111 | _selectedDefaultOptionIndex = 0; 112 | } 113 | 114 | protected override void OnMultiHeaderGUI() 115 | { 116 | EditorGUILayout.BeginVertical(); 117 | GUILayout.Space(5); 118 | EditorGUILayout.BeginVertical("HelpBox"); 119 | EditorGUILayout.BeginHorizontal("HelpBox"); 120 | GUILayout.FlexibleSpace(); 121 | GUILayout.Label("GUISkin - " + _guiSkin.name,EditorStyles.boldLabel); 122 | GUILayout.FlexibleSpace(); 123 | EditorGUILayout.EndHorizontal(); 124 | 125 | EditorGUILayout.BeginHorizontal(); 126 | GUILayout.FlexibleSpace(); 127 | if (GUILayout.Button("Ping", GUILayout.Width(40))) 128 | { 129 | EditorGUIUtility.PingObject(_guiSkin); 130 | } 131 | EditorGUILayout.EndHorizontal(); 132 | EditorGUILayout.EndVertical(); 133 | EditorGUILayout.EndVertical(); 134 | } 135 | 136 | protected override void OnMultiInspectorMainGUI(Rect totalArea) 137 | { 138 | GUILayout.BeginArea(totalArea); 139 | _mainScroll = GUILayout.BeginScrollView(_mainScroll, "HelpBox"); 140 | 141 | GUILayout.BeginHorizontal("HelpBox"); 142 | if(GUILayout.Toggle(_selectionMode == SelectionMode.Default, "Default Styles", "Button", GUILayout.Height(30))) 143 | { 144 | _selectionMode = SelectionMode.Default; 145 | } 146 | if (GUILayout.Toggle(_selectionMode== SelectionMode.Custom, "Custom Styles", "Button", GUILayout.Height(30))) 147 | { 148 | _selectionMode = SelectionMode.Custom; 149 | } 150 | if (GUILayout.Toggle(_selectionMode == SelectionMode.Options,"Options","Button", GUILayout.Height(30))) 151 | { 152 | _selectionMode = SelectionMode.Options; 153 | } 154 | GUILayout.EndHorizontal(); 155 | if (_selectionMode == SelectionMode.Default) 156 | { 157 | GUILayout.BeginVertical("HelpBox"); 158 | GUILayout.BeginHorizontal(); 159 | GUILayout.Label("Selected:", GUILayout.ExpandWidth(false)); 160 | _selectedDefaultOptionIndex = EditorGUILayout.Popup(_selectedDefaultOptionIndex, _defaultStylesOptionNames, GUILayout.ExpandWidth(true)); 161 | 162 | SelectItem(_selectedDefaultOptionIndex); 163 | 164 | GUILayout.EndHorizontal(); 165 | GUILayout.BeginHorizontal(); 166 | GUILayout.FlexibleSpace(); 167 | if (GUILayout.Button("Copy")) 168 | { 169 | _clipboardSelectedStyle = _selectedStyle.style; 170 | _clipboardStyle = new GUIStyle(_selectedStyle.style); 171 | } 172 | 173 | if (GUILayout.Button("Paste")) 174 | { 175 | if (_clipboardStyle != null) 176 | { 177 | _selectedStyle.style = _clipboardStyle; 178 | } 179 | } 180 | 181 | GUILayout.EndHorizontal(); 182 | GUILayout.EndVertical(); 183 | 184 | GUILayout.BeginVertical("HelpBox"); 185 | if (_selectedDefaultOptionIndex < 20) 186 | { 187 | if (_selectedStyle != null) 188 | { 189 | GUI.color = _guiStyleAreaColor; 190 | DrawGUIStyle(_selectedStyle); 191 | GUI.color = Color.white; 192 | } 193 | } 194 | 195 | GUILayout.EndVertical(); 196 | } 197 | else if(_selectionMode == SelectionMode.Custom) 198 | { 199 | List deleteList = new List(); 200 | 201 | 202 | for(int a=0;a<_guiSkin.customStyles.Length;++a) 203 | { 204 | GUIStyle style = _guiSkin.customStyles[a]; 205 | if(style != null) 206 | { 207 | GUILayout.BeginHorizontal("HelpBox"); 208 | if(GUILayout.Button("Select")) 209 | { 210 | if(_currentCustomStyle==null) 211 | { 212 | _currentCustomStyle = _guiSkin.customStyles[a]; 213 | } 214 | else 215 | { 216 | _currentCustomStyle = null; 217 | } 218 | } 219 | GUILayout.FlexibleSpace(); 220 | if (string.IsNullOrEmpty(style.name)) 221 | { 222 | GUILayout.Label("Unnamed Style"); 223 | } 224 | else 225 | { 226 | GUILayout.Label(style.name); 227 | } 228 | GUILayout.FlexibleSpace(); 229 | 230 | if (GUILayout.Button("Copy")) 231 | { 232 | _clipboardSelectedStyle = style; 233 | _clipboardStyle = new GUIStyle(style); 234 | } 235 | if (GUILayout.Button("Paste")) 236 | { 237 | _guiSkin.customStyles[a] = _clipboardStyle; 238 | } 239 | if (GUILayout.Button("Delete")) 240 | { 241 | deleteList.Add(style); 242 | } 243 | GUILayout.EndHorizontal(); 244 | if(_currentCustomStyle==style) 245 | { 246 | GUILayout.BeginVertical("HelpBox"); 247 | GUI.color = _guiStyleAreaColor; 248 | DrawGUIStyle(new Style("",_currentCustomStyle,ControlFlags.ALL)); 249 | 250 | GUI.color = Color.white; 251 | GUILayout.EndVertical(); 252 | } 253 | } 254 | } 255 | 256 | if (deleteList.Count>0) 257 | { 258 | Undo.RecordObject(_guiSkin, "Custom GuiStyle Removed"); 259 | List customStyles = new List(_guiSkin.customStyles); 260 | foreach (var style in deleteList) 261 | { 262 | if(style == _currentCustomStyle) 263 | { 264 | _currentCustomStyle = null; 265 | } 266 | customStyles.Remove(style); 267 | 268 | } 269 | _guiSkin.customStyles = customStyles.ToArray(); 270 | EditorUtility.SetDirty(_guiSkin); 271 | } 272 | 273 | GUILayout.BeginHorizontal("HelpBox"); 274 | if (GUILayout.Button("Add New")) 275 | { 276 | Undo.RecordObject(_guiSkin, "Custom GuiStyle Added"); 277 | List styles = new List(_guiSkin.customStyles); 278 | styles.Add(new GUIStyle()); 279 | _guiSkin.customStyles = styles.ToArray(); 280 | EditorUtility.SetDirty(_guiSkin); 281 | 282 | } 283 | GUILayout.EndHorizontal(); 284 | 285 | } 286 | else if (_selectionMode == SelectionMode.Options) 287 | { 288 | GUILayout.BeginVertical("HelpBox"); 289 | _guiSkin.settings.doubleClickSelectsWord = BoolField(_guiSkin.settings.doubleClickSelectsWord, "2 Click Select Word"); 290 | _guiSkin.settings.tripleClickSelectsLine = BoolField(_guiSkin.settings.tripleClickSelectsLine, "3 Click Select Line"); 291 | _guiSkin.settings.cursorColor = ColorField(_guiSkin.settings.cursorColor, "Cursor Color"); 292 | _guiSkin.settings.cursorFlashSpeed = FloatField(_guiSkin.settings.cursorFlashSpeed, "Cursor Flash Speed"); 293 | _guiSkin.settings.selectionColor = ColorField(_guiSkin.settings.selectionColor, "Selection Color"); 294 | GUILayout.EndVertical(); 295 | } 296 | GUILayout.EndScrollView(); 297 | GUILayout.EndArea(); 298 | 299 | } 300 | protected override void OnMultiInspectorAuxGUI(Rect totalArea) 301 | { 302 | GUILayout.BeginArea(totalArea); 303 | _auxScroll = GUILayout.BeginScrollView(_auxScroll, "HelpBox"); 304 | GUILayout.BeginVertical("HelpBox"); 305 | GUILayout.BeginHorizontal("HelpBox"); 306 | GUILayout.FlexibleSpace(); 307 | GUILayout.Label("Preview"); 308 | GUILayout.FlexibleSpace(); 309 | GUILayout.EndHorizontal(); 310 | 311 | if (_selectionMode == SelectionMode.Default || _selectionMode == SelectionMode.Options) 312 | { 313 | GUILayout.BeginVertical("HelpBox"); 314 | 315 | GUISkin defaultSkin = GUI.skin; 316 | GUI.skin = target as GUISkin; 317 | 318 | DrawPreviewControls(); 319 | 320 | GUI.skin = defaultSkin; 321 | 322 | GUILayout.EndVertical(); 323 | }else 324 | { 325 | if (_currentCustomStyle != null) 326 | { 327 | 328 | GUILayout.BeginVertical("HelpBox"); 329 | 330 | DrawPreviewControls(_currentCustomStyle); 331 | 332 | GUILayout.EndVertical(); 333 | 334 | } 335 | else 336 | { 337 | GUILayout.BeginHorizontal("HelpBox"); 338 | GUILayout.FlexibleSpace(); 339 | GUILayout.Label("Select a custom style to preview"); 340 | GUILayout.FlexibleSpace(); 341 | GUILayout.EndHorizontal(); 342 | } 343 | } 344 | GUILayout.EndVertical(); 345 | GUILayout.EndScrollView(); 346 | GUILayout.EndArea(); 347 | } 348 | 349 | void SelectItem(int item) 350 | { 351 | if (item >= 0 && item < _styles.Length) 352 | { 353 | _selectedStyle = _styles[item]; 354 | 355 | } 356 | } 357 | 358 | void DrawGUIStyle(Style inStyle) 359 | { 360 | GUIStyle style = inStyle.style; 361 | 362 | GUILayout.BeginHorizontal("HelpBox"); 363 | style.name = TextField(style.name,"Name"); 364 | GUILayout.EndHorizontal(); 365 | 366 | GUILayout.BeginVertical(); 367 | GUILayout.Label("States", EditorStyles.boldLabel); 368 | GUILayout.Label("Background"); 369 | GUILayout.BeginVertical("HelpBox"); 370 | if ((inStyle.flags&ControlFlags.Normal)!=0) 371 | style.normal.background = ObjectField(style.normal.background , "Normal"); 372 | 373 | if ((inStyle.flags & ControlFlags.Hover) != 0) 374 | style.hover.background = ObjectField(style.hover.background , "Hover"); 375 | 376 | if ((inStyle.flags & ControlFlags.Active) != 0) 377 | style.active.background = ObjectField(style.active.background , "Active"); 378 | 379 | if ((inStyle.flags & ControlFlags.Focused) != 0) 380 | style.focused.background = ObjectField(style.focused.background , "Focus"); 381 | 382 | 383 | if ((inStyle.flags & ControlFlags.UseON) != 0) 384 | { 385 | GUILayout.Space(5); 386 | 387 | if ((inStyle.flags & ControlFlags.Normal) != 0) 388 | style.onNormal.background = ObjectField(style.onNormal.background, "On Normal"); 389 | 390 | if ((inStyle.flags & ControlFlags.Hover) != 0) 391 | style.onHover.background = ObjectField(style.onHover.background, "On Hover"); 392 | 393 | if ((inStyle.flags & ControlFlags.Active) != 0) 394 | style.onActive.background = ObjectField(style.onActive.background, "On Active"); 395 | 396 | if ((inStyle.flags & ControlFlags.Focused) != 0) 397 | style.onFocused.background = ObjectField(style.onFocused.background, "On Focus"); 398 | } 399 | GUILayout.EndVertical(); 400 | 401 | GUILayout.Label("TextColor"); 402 | GUILayout.BeginVertical("HelpBox"); 403 | 404 | if ((inStyle.flags & ControlFlags.Normal) != 0) 405 | style.normal.textColor = ColorField(style.normal.textColor, "Normal Color"); 406 | 407 | if ((inStyle.flags & ControlFlags.Hover) != 0) 408 | style.hover.textColor = ColorField(style.hover.textColor, "Hover Color"); 409 | 410 | if ((inStyle.flags & ControlFlags.Active) != 0) 411 | style.active.textColor = ColorField(style.active.textColor, "Active Color"); 412 | 413 | if ((inStyle.flags & ControlFlags.Focused) != 0) 414 | style.focused.textColor = ColorField(style.focused.textColor, "Focus Color"); 415 | 416 | if ((inStyle.flags & ControlFlags.UseON) != 0) 417 | { 418 | GUILayout.Space(5); 419 | 420 | if ((inStyle.flags & ControlFlags.Normal) != 0) 421 | style.onNormal.textColor = ColorField(style.onNormal.textColor, "On Normal Color"); 422 | 423 | if ((inStyle.flags & ControlFlags.Hover) != 0) 424 | style.onHover.textColor = ColorField(style.onHover.textColor, "On Hover Color"); 425 | 426 | if ((inStyle.flags & ControlFlags.Active) != 0) 427 | style.onActive.textColor = ColorField(style.onActive.textColor, "On Active Color"); 428 | 429 | if ((inStyle.flags & ControlFlags.Focused) != 0) 430 | style.onFocused.textColor = ColorField(style.onFocused.textColor, "On Focus Color"); 431 | } 432 | GUILayout.EndVertical(); 433 | 434 | GUILayout.Label("Offsets",EditorStyles.boldLabel); 435 | GUILayout.BeginVertical("HelpBox"); 436 | 437 | style.border = RectField(style.border, "Border"); 438 | style.margin = RectField(style.margin, "Margin"); 439 | style.padding = RectField(style.padding, "Padding"); 440 | style.overflow = RectField(style.overflow, "Overflow"); 441 | GUILayout.EndVertical(); 442 | 443 | GUILayout.Label("Text", EditorStyles.boldLabel); 444 | GUILayout.BeginVertical("HelpBox"); 445 | 446 | style.font = ObjectField(style.font, "Font"); 447 | style.fontSize = IntField(style.fontSize, "Font Size"); 448 | style.fontStyle = (FontStyle)EnumField(style.fontStyle, "Font Style"); 449 | style.alignment = (TextAnchor)EnumField(style.alignment, "Alignment"); 450 | style.clipping = (TextClipping)EnumField(style.clipping, "Clipping"); 451 | 452 | style.wordWrap = BoolField(style.wordWrap, "Word Wrap"); 453 | style.richText = BoolField(style.richText, "Rich Text"); 454 | 455 | GUILayout.EndVertical(); 456 | GUILayout.Label("Misc", EditorStyles.boldLabel); 457 | GUILayout.BeginVertical("HelpBox"); 458 | style.imagePosition = (ImagePosition)EnumField(style.imagePosition, "Image Position"); 459 | style.contentOffset = Vector2Field(style.contentOffset, "Content Offset"); 460 | style.fixedWidth = FloatField(style.fixedWidth, "Fixed Width"); 461 | style.fixedHeight = FloatField(style.fixedHeight, "Fixed Height"); 462 | style.stretchWidth = BoolField(style.stretchWidth, "Stretch Width"); 463 | style.stretchHeight = BoolField(style.stretchHeight, "Stretch Height"); 464 | GUILayout.EndVertical(); 465 | GUILayout.EndVertical(); 466 | 467 | } 468 | void DrawPreviewControls(GUIStyle style) 469 | { 470 | GUILayout.BeginVertical(); 471 | EditorGUILayout.LabelField("Boxes"); 472 | GUILayout.BeginHorizontal(); 473 | GUILayout.Box("Box", style, GUILayout.Height(50)); 474 | GUILayout.Box("Box", style, GUILayout.Height(40)); 475 | GUILayout.Box("Box", style, GUILayout.Height(20)); 476 | GUILayout.EndHorizontal(); 477 | 478 | EditorGUILayout.LabelField("Buttons"); 479 | GUILayout.BeginHorizontal(); 480 | GUILayout.Button("Button", style, GUILayout.Height(50)); 481 | GUILayout.Button("Button", style, GUILayout.Height(40)); 482 | GUILayout.Button("Button", style, GUILayout.Height(20)); 483 | GUILayout.EndHorizontal(); 484 | 485 | EditorGUILayout.LabelField("Toggles"); 486 | GUILayout.BeginHorizontal(); 487 | GUILayout.Toggle(true, "Toggle", style); 488 | GUILayout.Toggle(false, "Toggle", style); 489 | GUILayout.Toggle(true, "Toggle", style); 490 | GUILayout.EndHorizontal(); 491 | 492 | EditorGUILayout.LabelField("Labels"); 493 | GUILayout.BeginHorizontal(); 494 | GUILayout.Label("Label", style); 495 | GUILayout.Label("Label Medium", style); 496 | GUILayout.Label("Label Big", style); 497 | GUILayout.EndHorizontal(); 498 | 499 | EditorGUILayout.LabelField("Text Fields"); 500 | GUILayout.BeginHorizontal(); 501 | GUILayout.TextField("TextField", style, GUILayout.Height(50)); 502 | GUILayout.TextField("TextField Medium\n2 lines", style, GUILayout.Height(40)); 503 | GUILayout.TextField("TextField Small", style, GUILayout.Height(20)); 504 | GUILayout.EndHorizontal(); 505 | 506 | EditorGUILayout.LabelField("Text Areas"); 507 | GUILayout.BeginHorizontal(); 508 | GUILayout.TextArea("TextArea", style, GUILayout.Height(50)); 509 | GUILayout.TextArea("TextArea Medium\n2 Lines", style, GUILayout.Height(40)); 510 | GUILayout.TextArea("TextArea Small", style, GUILayout.Height(20)); 511 | GUILayout.EndHorizontal(); 512 | 513 | GUILayout.EndVertical(); 514 | } 515 | 516 | void DrawPreviewControls() 517 | { 518 | GUILayout.BeginVertical(); 519 | EditorGUILayout.LabelField("Boxes"); 520 | GUILayout.BeginHorizontal(); 521 | GUILayout.Box("Box", GUILayout.Height(50)); 522 | GUILayout.Box("Box", GUILayout.Height(40)); 523 | GUILayout.Box("Box", GUILayout.Height(20)); 524 | GUILayout.EndHorizontal(); 525 | 526 | EditorGUILayout.LabelField("Buttons"); 527 | GUILayout.BeginHorizontal(); 528 | GUILayout.Button("Button", GUILayout.Height(50)); 529 | GUILayout.Button("Button", GUILayout.Height(40)); 530 | GUILayout.Button("Button", GUILayout.Height(20)); 531 | GUILayout.EndHorizontal(); 532 | 533 | EditorGUILayout.LabelField("Toggles"); 534 | GUILayout.BeginHorizontal(); 535 | GUILayout.Toggle(true, "Toggle"); 536 | GUILayout.Toggle(false, "Toggle"); 537 | GUILayout.Toggle(true, "Toggle"); 538 | GUILayout.EndHorizontal(); 539 | 540 | EditorGUILayout.LabelField("Labels"); 541 | GUILayout.BeginHorizontal(); 542 | GUILayout.Label("Label"); 543 | GUILayout.Label("Label Medium"); 544 | GUILayout.Label("Label Big"); 545 | GUILayout.EndHorizontal(); 546 | 547 | EditorGUILayout.LabelField("Text Fields"); 548 | GUILayout.BeginHorizontal(); 549 | GUILayout.TextField("TextField", GUILayout.Height(50)); 550 | GUILayout.TextField("TextField Medium\n2 lines", GUILayout.Height(40)); 551 | GUILayout.TextField("TextField Small", GUILayout.Height(20)); 552 | GUILayout.EndHorizontal(); 553 | 554 | EditorGUILayout.LabelField("Text Areas"); 555 | GUILayout.BeginHorizontal(); 556 | GUILayout.TextArea("TextArea", GUILayout.Height(50)); 557 | GUILayout.TextArea("TextArea Medium\n2 Lines", GUILayout.Height(40)); 558 | GUILayout.TextArea("TextArea Small", GUILayout.Height(20)); 559 | GUILayout.EndHorizontal(); 560 | 561 | EditorGUILayout.LabelField("Scroll View"); 562 | GUILayout.BeginHorizontal(); 563 | GUILayout.BeginScrollView(new Vector2(0,0), GUILayout.Height(70)); 564 | GUILayout.EndScrollView(); 565 | GUILayout.BeginScrollView(new Vector2(0, 0), GUILayout.Height(50)); 566 | GUILayout.EndScrollView(); 567 | GUILayout.BeginScrollView(new Vector2(0, 0), GUILayout.Height(40)); 568 | GUILayout.EndScrollView(); 569 | 570 | GUILayout.EndHorizontal(); 571 | EditorGUILayout.LabelField("Horizontal Slider"); 572 | GUILayout.BeginHorizontal(); 573 | GUILayout.HorizontalSlider(0.5f,1,0, GUILayout.Height(20)); 574 | GUILayout.HorizontalSlider(0.75f, 1, 0, GUILayout.Height(20)); 575 | GUILayout.HorizontalSlider(0.25f, 1, 0, GUILayout.Height(20)); 576 | GUILayout.EndHorizontal(); 577 | 578 | EditorGUILayout.LabelField("Vertical Slider"); 579 | GUILayout.BeginHorizontal(); 580 | GUILayout.VerticalSlider(0.5f, 1, 0, GUILayout.Height(100)); 581 | GUILayout.VerticalSlider(0.75f, 1, 0, GUILayout.Height(80)); 582 | GUILayout.VerticalSlider(0.25f, 1, 0, GUILayout.Height(50)); 583 | GUILayout.VerticalSlider(0.0f, 1, 0, GUILayout.Height(100)); 584 | GUILayout.VerticalSlider(0.15f, 1, 0, GUILayout.Height(80)); 585 | GUILayout.VerticalSlider(0.85f, 1, 0, GUILayout.Height(50)); 586 | GUILayout.EndHorizontal(); 587 | 588 | EditorGUILayout.LabelField("Horizontal ScrollBar"); 589 | GUILayout.BeginHorizontal(); 590 | GUILayout.HorizontalScrollbar(0.5f,0, 1, 0, GUILayout.Height(20)); 591 | GUILayout.HorizontalScrollbar(0.75f, 0, 1, 0, GUILayout.Height(20)); 592 | GUILayout.HorizontalScrollbar(0.25f, 0, 1, 0, GUILayout.Height(20)); 593 | GUILayout.EndHorizontal(); 594 | 595 | EditorGUILayout.LabelField("Vertical ScrollBar"); 596 | GUILayout.BeginHorizontal(); 597 | GUILayout.VerticalScrollbar(0.5f, 0, 1, 0, GUILayout.Height(100)); 598 | GUILayout.VerticalScrollbar(0.75f, 0, 1, 0, GUILayout.Height(80)); 599 | GUILayout.VerticalScrollbar(0.25f, 0, 1, 0, GUILayout.Height(50)); 600 | GUILayout.VerticalScrollbar(0.0f, 0, 1, 0, GUILayout.Height(100)); 601 | GUILayout.VerticalScrollbar(0.15f, 0, 1, 0, GUILayout.Height(80)); 602 | GUILayout.VerticalScrollbar(0.95f, 0, 1, 0, GUILayout.Height(50)); 603 | GUILayout.EndHorizontal(); 604 | 605 | GUILayout.EndVertical(); 606 | 607 | } 608 | 609 | #region Editor Fields 610 | T ObjectField(T obj, string title) where T : Object 611 | { 612 | GUILayout.BeginHorizontal(); 613 | GUILayout.Label(title, GUILayout.Width(GUISkinEditor.sLabelWitdh)); 614 | T newObject = EditorGUILayout.ObjectField(obj, typeof(T),false) as T; 615 | GUILayout.EndHorizontal(); 616 | if (GUI.changed) 617 | { 618 | Undo.RecordObject(_guiSkin, "GUISkin " + title + " Changed"); 619 | EditorUtility.SetDirty(_guiSkin); 620 | return newObject; 621 | } 622 | 623 | return obj; 624 | } 625 | 626 | Color ColorField(Color color, string title) 627 | { 628 | GUILayout.BeginHorizontal(); 629 | GUILayout.Label(title, GUILayout.Width(GUISkinEditor.sLabelWitdh)); 630 | 631 | Color newColor = EditorGUILayout.ColorField(color); 632 | GUILayout.EndHorizontal(); 633 | if (GUI.changed) 634 | { 635 | Undo.RecordObject(_guiSkin, "GUISkin " + title + " Changed"); 636 | EditorUtility.SetDirty(_guiSkin); 637 | return newColor; 638 | } 639 | 640 | return color; 641 | } 642 | 643 | RectOffset RectField(RectOffset rect, string title) 644 | { 645 | RectOffset newRect = new RectOffset(rect.left,rect.right,rect.top,rect.bottom); 646 | 647 | GUILayout.BeginHorizontal(); 648 | GUILayout.Label(title, GUILayout.Width(GUISkinEditor.sLabelWitdh)); 649 | 650 | newRect.left = EditorGUILayout.IntField(rect.left); 651 | newRect.top = EditorGUILayout.IntField(rect.top); 652 | newRect.right = EditorGUILayout.IntField(rect.right); 653 | newRect.bottom = EditorGUILayout.IntField(rect.bottom); 654 | 655 | GUILayout.EndHorizontal(); 656 | if (GUI.changed) 657 | { 658 | Undo.RecordObject(_guiSkin, "GUISkin " + title + " Changed"); 659 | EditorUtility.SetDirty(_guiSkin); 660 | return newRect; 661 | } 662 | 663 | return rect; 664 | } 665 | 666 | string TextField(string text,string title) 667 | { 668 | GUILayout.BeginHorizontal(); 669 | GUILayout.Label(title,GUILayout.Width(GUISkinEditor.sLabelWitdh)); 670 | string newText = GUILayout.TextField(text); 671 | GUILayout.EndHorizontal(); 672 | if (GUI.changed) 673 | { 674 | Undo.RecordObject(_guiSkin, "GUISkin "+title+" Changed"); 675 | EditorUtility.SetDirty(_guiSkin); 676 | return newText; 677 | } 678 | 679 | return text; 680 | } 681 | 682 | System.Enum EnumField(System.Enum enumType,string title) 683 | { 684 | GUILayout.BeginHorizontal(); 685 | GUILayout.Label(title, GUILayout.Width(GUISkinEditor.sLabelWitdh)); 686 | 687 | System.Enum newNumber = EditorGUILayout.EnumPopup(enumType); 688 | 689 | GUILayout.EndHorizontal(); 690 | if (GUI.changed) 691 | { 692 | Undo.RecordObject(_guiSkin, "GUISkin " + title + " Changed"); 693 | EditorUtility.SetDirty(_guiSkin); 694 | return newNumber; 695 | } 696 | 697 | return enumType; 698 | } 699 | 700 | int IntField(int number, string title) 701 | { 702 | GUILayout.BeginHorizontal(); 703 | GUILayout.Label(title, GUILayout.Width(GUISkinEditor.sLabelWitdh)); 704 | int newNumber = EditorGUILayout.IntField(number); 705 | 706 | GUILayout.EndHorizontal(); 707 | if (GUI.changed) 708 | { 709 | Undo.RecordObject(_guiSkin, "GUISkin " + title + " Changed"); 710 | EditorUtility.SetDirty(_guiSkin); 711 | return newNumber; 712 | } 713 | 714 | return number; 715 | } 716 | 717 | float FloatField(float number, string title) 718 | { 719 | GUILayout.BeginHorizontal(); 720 | GUILayout.Label(title, GUILayout.Width(GUISkinEditor.sLabelWitdh)); 721 | float newNumber = EditorGUILayout.FloatField(number); 722 | 723 | GUILayout.EndHorizontal(); 724 | if (GUI.changed) 725 | { 726 | Undo.RecordObject(_guiSkin, "GUISkin " + title + " Changed"); 727 | EditorUtility.SetDirty(_guiSkin); 728 | return newNumber; 729 | } 730 | 731 | return number; 732 | } 733 | 734 | bool BoolField(bool value, string title) 735 | { 736 | GUILayout.BeginHorizontal(); 737 | GUILayout.Label(title, GUILayout.Width(GUISkinEditor.sLabelWitdh)); 738 | bool newValue = EditorGUILayout.Toggle(value); 739 | 740 | GUILayout.EndHorizontal(); 741 | if (GUI.changed) 742 | { 743 | Undo.RecordObject(_guiSkin, "GUISkin " + title + " Changed"); 744 | EditorUtility.SetDirty(_guiSkin); 745 | return newValue; 746 | } 747 | 748 | return value; 749 | } 750 | 751 | Vector2 Vector2Field(Vector2 value, string title) 752 | { 753 | GUILayout.BeginHorizontal(); 754 | GUILayout.Label(title, GUILayout.Width(GUISkinEditor.sLabelWitdh)); 755 | Vector2 newValue = EditorGUILayout.Vector2Field("",value); 756 | 757 | GUILayout.EndHorizontal(); 758 | if (GUI.changed) 759 | { 760 | Undo.RecordObject(_guiSkin, "GUISkin " + title + " Changed"); 761 | EditorUtility.SetDirty(_guiSkin); 762 | return newValue; 763 | } 764 | 765 | return value; 766 | } 767 | #endregion 768 | } 769 | -------------------------------------------------------------------------------- /Assets/Scripts/Editor/GUISkinEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9deeda770dfec9241842f079a481a3b1 3 | timeCreated: 1453932930 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/Editor/MultiWindowEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections; 4 | 5 | public class MultiWindowEditor : Editor 6 | { 7 | private Rect _headerRect; 8 | private Rect _screenRect; 9 | private Rect _avalibleRect; 10 | private Rect _mainRect; 11 | private Rect _auxRect; 12 | 13 | private float _footerHeight = 45; 14 | private float _inspectorPercent = 0.7f; 15 | private float _windowOffset = 2; 16 | private float _padding = 4; 17 | 18 | protected void SetupMultiWindow(float percent) 19 | { 20 | _inspectorPercent = percent; 21 | 22 | _footerHeight = 45; 23 | _windowOffset = 2; 24 | _padding = 4; 25 | } 26 | 27 | protected override void OnHeaderGUI() 28 | { 29 | EditorGUILayout.BeginVertical(); 30 | OnMultiHeaderGUI(); 31 | EditorGUILayout.EndVertical(); 32 | 33 | if (Event.current.type == EventType.Repaint) 34 | { 35 | _headerRect = GUILayoutUtility.GetLastRect(); 36 | } 37 | } 38 | 39 | public override void OnInspectorGUI() 40 | { 41 | if(_inspectorPercent > 0.95f) 42 | { 43 | _inspectorPercent = 0.95f; 44 | } 45 | 46 | if (Event.current.type == EventType.Layout) 47 | { 48 | _screenRect = new Rect(0, 0, Screen.width, Screen.height); 49 | _avalibleRect = new Rect(_screenRect.x + _padding, _screenRect.y + _headerRect.height + _padding, _screenRect.width - _padding * 2, _screenRect.height - _headerRect.height - _footerHeight - _padding * 2); 50 | 51 | float mainInspectorHeight = Mathf.CeilToInt(_avalibleRect.height * _inspectorPercent)- _windowOffset; 52 | float auxInspectorHeight = Mathf.CeilToInt(_avalibleRect.height * (1 - _inspectorPercent)- _windowOffset); 53 | 54 | _mainRect = new Rect(_avalibleRect.x, _avalibleRect.y, _avalibleRect.width, mainInspectorHeight); 55 | _auxRect = new Rect(_avalibleRect.x, _avalibleRect.y + mainInspectorHeight+ _windowOffset*2, _avalibleRect.width, auxInspectorHeight); 56 | } 57 | 58 | 59 | OnMultiInspectorMainGUI(_mainRect); 60 | OnMultiInspectorAuxGUI(_auxRect); 61 | 62 | } 63 | 64 | protected virtual void OnMultiHeaderGUI() 65 | { 66 | //Overridable 67 | } 68 | protected virtual void OnMultiInspectorMainGUI(Rect totalArea) 69 | { 70 | //Overridable 71 | } 72 | protected virtual void OnMultiInspectorAuxGUI(Rect totalArea) 73 | { 74 | //Overridable 75 | } 76 | } -------------------------------------------------------------------------------- /Assets/Scripts/Editor/MultiWindowEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91b3d67bff59fa144a61e33e29f617c8 3 | timeCreated: 1453936201 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Test Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a40d231eb24e29459404af98fcdde09 3 | folderAsset: yes 4 | timeCreated: 1453932955 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Test Assets/TestGUISkin.guiskin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/Assets/Test Assets/TestGUISkin.guiskin -------------------------------------------------------------------------------- /Assets/Test Assets/TestGUISkin.guiskin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 138a176c02c3ec148a0828567bbf3acf 3 | timeCreated: 1453932708 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Test Assets/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/Assets/Test Assets/button.png -------------------------------------------------------------------------------- /Assets/Test Assets/button.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e577869d99cf0c41a64c9f083bb0745 3 | timeCreated: 1453934308 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 1 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | textureType: 8 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: [] 54 | spritePackingTag: 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /Docs/Inspector.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/Docs/Inspector.PNG -------------------------------------------------------------------------------- /Images/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/Images/example.gif -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.2.0f3 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZoserLock/unity-guiskin-editor/6232f6b1d6fcea7fb2261fa88cab2f16b88c7d71/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GUI Skin Custom Editor 2 | A simple C# Script to show a better custom editor for GUISkin and GUIStyle files. 3 | 4 | # Instalation 5 | Add the Assets/Stripts/ folder to your project. 6 | 7 | # Screenshots 8 | ![Example](https://github.com/ZoserLock/unity-guiskin-editor/raw/master/Images/example.gif) 9 | -------------------------------------------------------------------------------- /UnityPackageManager/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | } 4 | } 5 | --------------------------------------------------------------------------------