Anyone know of an Editor GUI skin template floating around anywhere? I’m looking for one so I can mimic the style of the Unity Editor, while adding my own touch to it, with new types of interface objects.
Paste this code into an empty .cs file in your Editor folder and click “Save Editor Skin” in the Assets menu, it will save the inspector editor skin to your project folder.
using UnityEngine;
using UnityEditor;
using System.Collections;
public class DummyEditor : EditorWindow
{
[MenuItem("Assets/Save Editor Skin")]
static public void SaveEditorSkin()
{
GUISkin skin = ScriptableObject.Instantiate(EditorGUIUtility.GetBuiltinSkin(EditorSkin.Inspector)) as GUISkin;
AssetDatabase.CreateAsset(skin, "Assets/EditorSkin.guiskin");
}
}
1 Like
Thank you, this is great!
I saved GUISkin, but when I build application it says: An asset is marked as dont save, but is included in the build
Could be connected with the Hideflags: Unity - Scripting API: HideFlags
If it is still relevant (which I don’t think
) but maybe if someone finds this later on.