Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Seantong committed Nov 21, 2019
1 parent 8f8de49 commit e8fba28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/PathTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static string Asset2File(string assetpath)
{
if (IsAssetPath(assetpath))
{
var FilePath = Application.dataPath + "/" + assetpath.Replace("Assets/", "");
var FilePath = Directory.GetParent(assetpath).FullName + @"\" + Path.GetFileName(assetpath);
#if UNITY_STANDALONE_WIN
FilePath = FilePath.Replace("/", @"\");
return FilePath;
Expand Down
1 change: 1 addition & 0 deletions Editor/SeanLibManager/SeanLibIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public abstract class SeanLibEditor
/// </summary>
public Rect position;
public IMGUIContainer EditorContent_IMGUI;
public VisualElement EditorContent_Elements => window.EditorContent;
protected virtual string UXML => string.Empty;

protected StyleSheet editorContent_styles;
Expand Down

0 comments on commit e8fba28

Please sign in to comment.