public static bool OpenEditor(int instanceId, int line) { ObjectDatabase obj = EditorUtility.InstanceIDToObject(instanceId) as ObjectDatabase; if (obj != null) { ObjectDatabaseEditorWindow.OpenWindow(obj); return(true); } return(false); }
public override void OnInspectorGUI() { ObjectDatabaseEditorWindow.OpenWindow((ObjectDatabase)target); }