I am using 'EditorUtility.OpenFolderPanel' to get a path. Bur it returns the complete path... 'X:\Projects\4604-Renovation\Unity\4604_02\Assets\Models\FullBuilding\Materials' I only want 'Assets\Models\FullBuilding\Materials' how can I remove the path up to that point? Thanks.
You could also use string slicing, here is a UnityScript example: Code (csharp): function Start(){ var fullPath = "X:/Projects/4604-Renovation/Unity/4604_02/Assets/Models/FullBuildin g/Materials"; var shortPath = fullPath[fullPath.IndexOf("Assets"):]; Debug.Log(shortPath); }