You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			496 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			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;
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |