Skip to content

Instantly share code, notes, and snippets.

@Mathijs-Bakker
Created August 30, 2019 18:12
Show Gist options
  • Save Mathijs-Bakker/fa201009f6bababe04ba740de4af072e to your computer and use it in GitHub Desktop.
Save Mathijs-Bakker/fa201009f6bababe04ba740de4af072e to your computer and use it in GitHub Desktop.
Save the Unity Editor default GuiSkin to assets.
using UnityEditor;
public class UnityEditorGuiSkinSaver : Editor
{
[MenuItem("Assets/Save Editor Skin")]
public static void SaveEditorSkinToAssets()
{
var skin = Instantiate(EditorGUIUtility.GetBuiltinSkin(EditorSkin.Inspector));
AssetDatabase.CreateAsset(skin, "Assets/EditorSkin.guiskin");
}
}
@Mathijs-Bakker
Copy link
Author

This saves the default skin of the Unity Editor to your Assets path.
Just run from the Assets menu.
And view the guiskin in your assets folder for reference or customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment