Custom Inspector Inspector

From Unify Community Wiki
Jump to: navigation, search

Put this line inside your custom inspector/editor script's OnInspector() somewhere:

EditorGUILayout.ObjectField(new GUIContent("Custom Editor Script"), AssetDatabase.LoadAssetAtPath("Assets/Editor/" + GetType().Name + ".cs", typeof(MonoScript)), typeof(MonoScript));


Now, by clicking this control, you can go directly from looking at a custom inspector you are making, to editing the script of that custom inspector (which can otherwise require a lot of scrolling to find in your Project pane).

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox