holopy3/Assets/Plugins/RootMotion/Editor/Baker/Helpers/SaveClipFolderPanel.cs
2020-12-10 15:25:12 +01:00

22 lines
No EOL
496 B
C#

using UnityEngine;
using UnityEditor;
using System.IO;
using System;
namespace RootMotion
{
public class SaveClipFolderPanel : EditorWindow
{
public static string Apply(string currentPath)
{
string path = EditorUtility.SaveFolderPanel("Save clip(s) to folder", currentPath, "");
if (path.Length != 0)
{
return path.Substring(path.IndexOf("Assets/"));
}
return currentPath;
}
}
}