Advanced Editor Styles Viewer... (FREE)

Working on a custom editor for your scripts? Want to spice up the look but don’t know the built-in custom editor styles? Well now you can easily find the style you want and copy it by just clicking it (Pics below). Another neat feature is that it doesn’t use GUILayout to display the items as this can cause issues when viewing some items causing them to squish or stretch and look terrible. It auto calculates the default size of the original image and adjusts it’s size accordingly.

Newest Features Added 12/9/14
-Can now view both the Game and Inspector skins
-Loads all GUI Skins in project folder so you can view them
-Moved the search parameters button to the search bar (Click the magnifying glass)
-Options now shows what features are selected (Showing text, if an items is disabled or not.)
-Now shows all styles of a GUISkin not just the custom styles

Features Added 12/8/14
-Added option to enable or disable the items GUI
-Added a color option that allows you to change an items background or content color
-Added a text feature the item will re-size in relation to the text size
-Created an “Options” menu to clean up the UI

Features :
-Clean looking GUI
-Search feature
-Click the “Copy” button to copy it to your clipboard (it adds the quotes so you don’t have to)
-Shows both the non-pro and pro-version of the item (Need pro to see pro-version)
-Dockable
-Full Source
-Custom searches (StartsWith, EndsWith, Contains)
-All forms of each item (clicking the item triggers it on or off)

Working on :
-Create code snippets that you can paste in then fill in the blanks…
(Example of pasted code : if(GUI.Button(new Rect(0,0,0,0),“Insert Content Here”,“ButtonRight”)){}
will support js and c#)

-As I think of them…

Pics:



1875578–120841–EditorStyleViewer.cs (12.3 KB)

4 Likes

Update…

-Added custom searches
-Added a toggle to each item so you can see its on off state
-Added a copy button instead of using the item to copy(This was because of the toggle feature)
-Adjusted the UI a little.

1 Like

thanks for sharing this, i will check it out now

Sounds useful. ty

downloads

Happy Holidays

:sunglasses:

1 Like

New features added in… :smile:
-Added option to enable or disable the items GUI
-Added a color option that allows you to change an items background or content color
-Added a text feature the item will re-size in relation to the text size
-Created an “Options” menu to clean up the UI

1878274–120795–EditorStyleViewer.cs (9.63 KB)

1 Like

Newest Features Added 12/9/14
-Can now view both the Game and Inspector skins
-Loads all GUI Skins in project folder so you can view them
-Moved the search parameters button to the search bar (Click the magnifying glass)
-Options now shows what features are selected (Showing text, if an items is disabled or not.)
-Now shows all styles of a GUISkin not just the custom styles



1875578–120841–EditorStyleViewer.cs (12.3 KB)

2 Likes

Any one else find this useful?

1 Like

It help me a lot.Thanks for share it.

Me too, thank you!

Your scripting was throwing errors:

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <f2e6809acb14476a81f399aeb800f8f2>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <f2e6809acb14476a81f399aeb800f8f2>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <f2e6809acb14476a81f399aeb800f8f2>:0)
EditorStyleViewer.OnGUI () (at ...

Every time I reload any script, so I’ve changed it a bit to prevent that.

4637194–435064–EditorStyleViewer.cs (11.9 KB)

I’ve made my own, much better version GitHub - neon-age/GUIStylesViewer: Built-in GUIStyles & Icons viewer for Unity with save to texture feature and fast scroll view

  • No lags with optimized scrollview
  • Save to Texture feature
  • Search for state names
  • Uses GUILayout instead of GUI
  • Better design with some new options

It’s much more useful for me now, and i hope for you as well =)

I added your GUIStylesViewer in my project but it doesn’t load the asset “GUIStylesViewerIcon”:
It throw IndexOutOfRangeException.

//Line 102
    public static void OpenWindow()
    {
        window = GetWindow<GUIStylesViewer>();
        string iconGUID = AssetDatabase.FindAssets("GUIStylesViewerIcon")[0];
        Texture2D icon = AssetDatabase.LoadAssetAtPath<Texture2D>(AssetDatabase.GUIDToAssetPath(iconGUID));
        window.titleContent = new GUIContent("GUIStyles Viewer", icon);
    }

So I wanted to ask you, which version of unity is this toold made for?
I’m using unity 2019.2.2
Or there’s something else I need to make it work?

Then it means it didn’t found it. Are you imported only a script into project? If so, just import 2 missing textures from repository, or delete lines that causes errors.

It helps a lot, thx.

I still use this today, glad to hear people are getting use out of it!