Custom Inspector Inspector

From Unify Community Wiki
Revision as of 09:32, 26 July 2011 by Matt maker (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Put this line inside your 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