Skip to content

Commit

Permalink
open file with default editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Dec 29, 2017
1 parent 2d9c785 commit 730b274
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -71,7 +71,8 @@ public void Draw()
var openButtonStyle = EditorStyles.miniButton;
openButtonStyle.fixedWidth = 40;
if (GUILayout.Button("Open", openButtonStyle)) {
EditorUtility.OpenWithDefaultApp(selected.path);
var asset = AssetDatabase.LoadAssetAtPath(selected.path, typeof(Object));
AssetDatabase.OpenAsset(asset);
}

var pre = prop.stringValue;
Expand Down

0 comments on commit 730b274

Please sign in to comment.