Created
August 30, 2019 18:12
-
-
Save Mathijs-Bakker/fa201009f6bababe04ba740de4af072e to your computer and use it in GitHub Desktop.
Save the Unity Editor default GuiSkin to assets.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.