Files
Cielonos/Assets/Plugins/RootMotion/Editor/Baker/Helpers/SaveClipFolderPanel.cs
SoulliesOfficial ef7b479712 initial
2025-11-25 08:19:33 -05:00

22 lines
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;
}
}
}