上传YomovSDK
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user